source: lab.git/TipAndDoc/iptables/ufw/nat.rules @ d1c9ece

trunk
Last change on this file since d1c9ece was 8333ea0, checked in by mitty <mitty@…>, 14 years ago

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

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