trunk
Line | |
---|
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.