Add tproxy udp port mark filter that was missed in #144, fixes #367.

This commit is contained in:
Norman Rasmussen
2019-10-12 11:02:33 -07:00
committed by Brian May
parent fe1df00be7
commit 502b36e990
2 changed files with 3 additions and 2 deletions

View File

@ -244,7 +244,8 @@ class Method(BaseMethod):
else:
_ipt('-A', mark_chain, '-j', 'MARK', '--set-mark', '1',
'--dest', '%s/%s' % (snet, swidth),
'-m', 'udp', '-p', 'udp')
'-m', 'udp',
*udp_ports)
_ipt('-A', tproxy_chain, '-j', 'TPROXY',
'--tproxy-mark', '0x1/0x1',
'--dest', '%s/%s' % (snet, swidth),