summaryrefslogtreecommitdiffstats
path: root/sshuttle
diff options
context:
space:
mode:
authorJohnHay <john@sanren.ac.za>2021-12-20 09:20:32 +0200
committerJohnHay <john@sanren.ac.za>2021-12-20 09:20:32 +0200
commit0cfee0ba84ae6a48527b452e7cb868e1cb0e353b (patch)
treec12ee20b212aacf501753ecde3660ccf0921504c /sshuttle
parentf247853f39e0549f3dee2286a20867e401f3c7e9 (diff)
ipfw expects text.
Diffstat (limited to 'sshuttle')
-rw-r--r--sshuttle/methods/ipfw.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshuttle/methods/ipfw.py b/sshuttle/methods/ipfw.py
index 5d94750..34adce2 100644
--- a/sshuttle/methods/ipfw.py
+++ b/sshuttle/methods/ipfw.py
@@ -186,7 +186,7 @@ class Method(BaseMethod):
ipfw('add', '1', 'fwd', '127.0.0.1,%d' % port,
'tcp',
'from', 'any', 'to', 'table(126)',
- 'not', 'ipttl', ttl, 'keep-state', 'setup')
+ 'not', 'ipttl', '%d' % ttl, 'keep-state', 'setup')
ipfw_noexit('table', '124', 'flush')
dnscount = 0
@@ -197,11 +197,11 @@ class Method(BaseMethod):
ipfw('add', '1', 'fwd', '127.0.0.1,%d' % dnsport,
'udp',
'from', 'any', 'to', 'table(124)',
- 'not', 'ipttl', ttl)
+ 'not', 'ipttl', '%d' % ttl)
ipfw('add', '1', 'allow',
'udp',
'from', 'any', 'to', 'any',
- 'ipttl', ttl)
+ 'ipttl', '%d' % ttl)
if subnets:
# create new subnet entries