Skip to content

Improve nft IPv6 support.#557

Merged
brianmay merged 1 commit intosshuttle:masterfrom
skuhl:nft-ipv6-improvements
Nov 4, 2020
Merged

Improve nft IPv6 support.#557
brianmay merged 1 commit intosshuttle:masterfrom
skuhl:nft-ipv6-improvements

Conversation

@skuhl
Copy link
Contributor

@skuhl skuhl commented Nov 4, 2020

This commit makes two fixes:

  1. If an IPv6 DNS server is used, an nft rule had "ip6 protocol" in it
    which is invalid and caused sshuttle to exit.

  2. I modified detection of udp vs tcp to follow the recommendation at
    https://superuser.com/questions/1560376/match-ipv6-protocol-using-nftables

I also re-arranged the code slightly to reduce the number of
if-statements.

This commit makes two fixes:

1. If an IPv6 DNS server is used, an nft rule had "ip6 protocol" in it
which is invalid and caused sshuttle to exit.

2. I modified detection of udp vs tcp to follow the recommendation at
https://superuser.com/questions/1560376/match-ipv6-protocol-using-nftables

I also re-arranged the code slightly to reduce the number of
if-statements.
@brianmay brianmay merged commit 34acdd0 into sshuttle:master Nov 4, 2020
@skuhl skuhl deleted the nft-ipv6-improvements branch November 4, 2020 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants