We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f247853 commit 0cfee0bCopy full SHA for 0cfee0b
sshuttle/methods/ipfw.py
@@ -186,7 +186,7 @@ def setup_firewall(self, port, dnsport, nslist, family, subnets, udp,
186
ipfw('add', '1', 'fwd', '127.0.0.1,%d' % port,
187
'tcp',
188
'from', 'any', 'to', 'table(126)',
189
- 'not', 'ipttl', ttl, 'keep-state', 'setup')
+ 'not', 'ipttl', '%d' % ttl, 'keep-state', 'setup')
190
191
ipfw_noexit('table', '124', 'flush')
192
dnscount = 0
@@ -197,11 +197,11 @@ def setup_firewall(self, port, dnsport, nslist, family, subnets, udp,
197
ipfw('add', '1', 'fwd', '127.0.0.1,%d' % dnsport,
198
'udp',
199
'from', 'any', 'to', 'table(124)',
200
- 'not', 'ipttl', ttl)
+ 'not', 'ipttl', '%d' % ttl)
201
ipfw('add', '1', 'allow',
202
203
'from', 'any', 'to', 'any',
204
- 'ipttl', ttl)
+ 'ipttl', '%d' % ttl)
205
206
if subnets:
207
# create new subnet entries
0 commit comments