Last change
on this file since 17 was
17,
checked in by mitty, 15 years ago
|
- IP MASQUERADE is now set up with setmasq.sh [16], so delete rules no longer needed
|
File size:
467 bytes
|
Rev | Line | |
---|
[13] | 1 | # |
---|
| 2 | # This file is used by /etc/init.d/setfilter |
---|
| 3 | # |
---|
| 4 | # Rules that should be stored in nat table. |
---|
| 5 | # These are mainly used to IP MASQUERADE and REDIRECT. |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | *nat |
---|
| 9 | |
---|
| 10 | ## port REDIRECT to local services |
---|
| 11 | # 8443/tcp -> 443/tcp |
---|
| 12 | -A PREROUTING -p tcp --dport 8443 -j REDIRECT --to-port 443 |
---|
| 13 | # WAN 8000/tcp -> 443/tcp |
---|
| 14 | -A PREROUTING -p tcp -i eth1 --dport 8000 -j REDIRECT --to-port 443 |
---|
| 15 | # LAN 8000/tcp -> 22/tcp |
---|
| 16 | -A PREROUTING -p tcp -i eth0 --dport 8000 -j REDIRECT --to-port 22 |
---|
| 17 | |
---|
| 18 | COMMIT |
---|
Note: See
TracBrowser
for help on using the repository browser.