diff --git a/sshuttle/methods/tproxy.py b/sshuttle/methods/tproxy.py index 03f8e1b..5ba9e13 100644 --- a/sshuttle/methods/tproxy.py +++ b/sshuttle/methods/tproxy.py @@ -152,8 +152,13 @@ class Method(BaseMethod): def setup_firewall(self, port, dnsport, nslist, family, subnets, udp, user): + if self.firewall.tmark is None: + tmark = '1' + else: + tmark = self.firewall.tmark + self.setup_firewall_tproxy(port, dnsport, nslist, family, subnets, udp, - user, self.firewall.tmark) + user, tmark) def setup_firewall_tproxy(self, port, dnsport, nslist, family, subnets, udp, user, tmark):