Posted by Anonymous on Fri 7th Jul 08:08 (modification of post by zob000 view diff)
diff | download | new post
- guest1
- iptables -A INPUT -p tcp -s 0/0 -d a.b.c.35 --dport 22 --syn -j ACCEPT
- iptables -t nat -A POSTROUTING -s 192.168.35.0/24 -o eth0 -j SNAT --to-source a.b.c.35
- iptables -A INPUT -p tcp -s 0/0 -d a.b.c.35 --dport 80 --syn -j ACCEPT
- iptables -A INPUT -p tcp -s 0/0 -d a.b.c.35 --dport 443 --syn -j ACCEPT
- iptables -A INPUT -p udp -s 0/0 -d a.b.c.35 --dport 1812 -j ACCEPT
- iptables -A INPUT -p udp -s 0/0 -d a.b.c.35 --dport 1813 -j ACCEPT
- iptables -A INPUT -p udp -s 0/0 -d a.b.c.35 --dport 1814 -j ACCEPT
- guest2
- iptables -A INPUT -p tcp -s 0/0 -d a.b.c.35 --dport 2222 --syn -j ACCEPT
- iptables -t nat -A PREROUTING -d a.b.c.35 -i eth0 -p tcp --dport 2222 -j DNAT --to ${guest_ip}:22
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
