Skip to content
Snippets Groups Projects
Commit 5157ac0e authored by Recolic Keghart's avatar Recolic Keghart
Browse files

Update howto.md

parent d0e0593d
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,12 @@ iptables:
```
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -p tcp --dport 11191 -j DNAT --to-destination 1.1.1.1:1111
iptables -A FORWARD -p tcp -d 1.1.1.1 --dport 1111 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 11192 -j DNAT --to-destination 1.1.1.1:25551
iptables -t nat -A PREROUTING -p udp --dport 11192 -j DNAT --to-destination 1.1.1.1:25551
iptables -A FORWARD -p tcp -d 1.1.1.1 --dport 25551 -j ACCEPT
iptables -A FORWARD -p udp -d 1.1.1.1 --dport 25551 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment