Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| networking:linux:iptables [20 years ago - 2005/11/23 20:31] – aogail | networking:linux:iptables [19 years ago - 2007/05/28 06:45] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Forward a Port/range ===== | ===== Forward a Port/range ===== | ||
| - | | + | |
| - | # iptables -t nat -I PREROUTING -i external -p tcp --dport 4662 -j DNAT --to 192.168.0.11: | + | |
| - | | + | # iptables |
| - | | + | |
| - | - Add forwarding rule for internal hosts... | + | |
| - | # iptables -I FORWARD -i eth0 -p tcp -s 192.168.0.11/ | + | |
| - | | + | # iptables |
| + | |||
| + | * **Add forwarding rule for internal hosts** | ||
| + | |||
| + | # iptables -I FORWARD -i ethExternal | ||
| + | |||
| + | ===== Reference Links ===== | ||
| + | | ||