Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: support for ipv6 DNAT #37

Open
GJCav opened this issue Oct 4, 2023 · 0 comments
Open

feature request: support for ipv6 DNAT #37

GJCav opened this issue Oct 4, 2023 · 0 comments

Comments

@GJCav
Copy link

GJCav commented Oct 4, 2023

My host server only has a private ipv4 address and a global ipv6 address. I want to enable ipv6 forwarding so I can access my guest VM through global ipv6.

I have successfully defined a network with ipv6:

<ip family='ipv6' address='fd12:8848:a2a2:1::1' prefix='64'>
  <dhcp>
    <range start='fd12:8848:a2a2:1::4' end='fd12:8848:a2a2:1::ff'/>
  </dhcp>
</ip>

Then, the address of my guest VM is fd12:8848:a2a2:1::53 and I can connect to it with ssh from the host.

However, this script seemed to only add ipv4 DNAT in iptables. ip6tables -t nat -L did not have any DNAT rules. So, I added it by hand:

sudo ip6tables -t nat -A PREROUTING -p tcp --dport 4022 -j DNAT --to-destination '[fd12:8848:a2a2:1::53]:22'

And everything works perfectly.

But I still want to let this script manages it automatically and it would be appreciated if the developers of the script can add this feature.

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

No branches or pull requests

1 participant