Skip to content

Commit 0cfee0b

Browse files
committed
ipfw expects text.
1 parent f247853 commit 0cfee0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sshuttle/methods/ipfw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def setup_firewall(self, port, dnsport, nslist, family, subnets, udp,
186186
ipfw('add', '1', 'fwd', '127.0.0.1,%d' % port,
187187
'tcp',
188188
'from', 'any', 'to', 'table(126)',
189-
'not', 'ipttl', ttl, 'keep-state', 'setup')
189+
'not', 'ipttl', '%d' % ttl, 'keep-state', 'setup')
190190

191191
ipfw_noexit('table', '124', 'flush')
192192
dnscount = 0
@@ -197,11 +197,11 @@ def setup_firewall(self, port, dnsport, nslist, family, subnets, udp,
197197
ipfw('add', '1', 'fwd', '127.0.0.1,%d' % dnsport,
198198
'udp',
199199
'from', 'any', 'to', 'table(124)',
200-
'not', 'ipttl', ttl)
200+
'not', 'ipttl', '%d' % ttl)
201201
ipfw('add', '1', 'allow',
202202
'udp',
203203
'from', 'any', 'to', 'any',
204-
'ipttl', ttl)
204+
'ipttl', '%d' % ttl)
205205

206206
if subnets:
207207
# create new subnet entries

0 commit comments

Comments
 (0)