We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
# connections from outside sudo iptables -I FORWARD -o virbr0 -d 192.168.122.226 -j ACCEPT sudo iptables -t nat -A PREROUTING -p tcp --dport 8006 -j DNAT --to 192.168.122.226:8006 sudo iptables -t nat -A POSTROUTING -s 192.168.122.0/24 -j MASQUERADE # local subnet sudo iptables -A FORWARD -o virbr0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i virbr0 -o enp0s31f6 -j ACCEPT sudo iptables -A FORWARD -i virbr0 -o lo -j ACCEPT # save to persistent rules sudo service netfilter-persistent save sudo service netfilter-persistent reload
refer to: https://aboullaite.me/kvm-qemo-forward-ports-with-iptables/
The text was updated successfully, but these errors were encountered:
第一条 FORWARD 要用 -I,用-A不行。
-I
-A
Sorry, something went wrong.
No branches or pull requests
refer to: https://aboullaite.me/kvm-qemo-forward-ports-with-iptables/
The text was updated successfully, but these errors were encountered: