source: lab.git/iptables/ufw/nat.rules @ 38785a4

trunk
Last change on this file since 38785a4 was 0d809d3, checked in by mitty <mitty@…>, 15 years ago
  • IP MASQUERADE is now set up with setmasq.sh [16], so delete rules no longer needed

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@17 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

  • Property mode set to 100644
File size: 467 bytes
RevLine 
[71b798c]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
18COMMIT
Note: See TracBrowser for help on using the repository browser.