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

Add firewall rules to always allow connection from netns to host #60

Closed
jamesmcm opened this issue Jan 29, 2021 · 2 comments
Closed

Add firewall rules to always allow connection from netns to host #60

jamesmcm opened this issue Jan 29, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jamesmcm
Copy link
Owner

See #59

iptables -A FORWARD -i eth0 -o v-eth1 -j ACCEPT
iptables -A FORWARD -o eth0 -i v-eth1 -j ACCEPT

Need to add both iptables and nftables rules to do the above (and remove them when vopono terminates) - like we do with the masquerade rule on the host.

Interface must be the detected (or provided) interface e.g. ethernet or wireless.

veth tunnel name must be generated name.

@jamesmcm jamesmcm added enhancement New feature or request good first issue Good for newcomers labels Jan 29, 2021
@jamesmcm
Copy link
Owner Author

jamesmcm commented Feb 6, 2021

In iptables use -I to insert at front (after running other rule insertions), for nftables create specific chain with high priority.

@jamesmcm
Copy link
Owner Author

jamesmcm commented Feb 7, 2021

Closed in bf8b7d0

@jamesmcm jamesmcm closed this as completed Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant