1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-18 17:27:20 +01:00
fwbuilder/test/ipf/firewall5-nat.conf.orig
Vadim Kurland fdb899bdd2 * NATCompiler_ipf.cpp (processNext): see #133, fixes #2108 making
nat compiler for ipfilter work with interface column, however the
column is not exposed to the user. Compiler behavior should be
backwards compatible with older versions of fwbuilder.
2011-02-17 12:06:50 -08:00

52 lines
2.4 KiB
Plaintext
Executable File

#
# Rule 0 (NAT)
map ppp0 from 192.168.1.0/24 to any -> 0/32 portmap tcp/udp auto
map ppp0 from 192.168.1.0/24 to any -> 0/32
map eth1 from 192.168.1.0/24 to any -> 33.33.33.33/32 portmap tcp/udp auto
map eth1 from 192.168.1.0/24 to any -> 33.33.33.33/32
map eth1 from 192.168.1.0/24 to any -> 33.33.33.34/32 portmap tcp/udp auto
map eth1 from 192.168.1.0/24 to any -> 33.33.33.34/32
map eth0 from 192.168.1.0/24 to any -> 192.168.1.1/32 portmap tcp/udp auto
map eth0 from 192.168.1.0/24 to any -> 192.168.1.1/32
#
# Rule 1 (NAT)
map eth1 from 192.168.1.0/24 to any -> 33.33.33.33/32 portmap tcp/udp auto
map eth1 from 192.168.1.0/24 to any -> 33.33.33.33/32
map eth1 from 192.168.1.0/24 to any -> 33.33.33.34/32 portmap tcp/udp auto
map eth1 from 192.168.1.0/24 to any -> 33.33.33.34/32
#
# Rule 2 (NAT)
map eth1 from 192.168.1.0/24 to any -> 33.33.33.33/32 portmap tcp/udp auto
map eth1 from 192.168.1.0/24 to any -> 33.33.33.33/32
#
# Rule 3 (NAT)
rdr ppp0 from any to (ppp0) port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.33/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.34/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth0 from any to 192.168.1.1/32 port = 22 -> 192.168.1.100 port 22 tcp
#
# Rule 4 (NAT)
rdr ppp0 from any to (ppp0) port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.33/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.34/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth0 from any to 192.168.1.1/32 port = 22 -> 192.168.1.100 port 22 tcp
#
# Rule 5 (NAT)
rdr ppp0 from any to (ppp0) port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.33/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.34/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth0 from any to 192.168.1.1/32 port = 22 -> 192.168.1.100 port 22 tcp
#
# Rule 6 (NAT)
rdr ppp0 from any to (ppp0) port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.33/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.34/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth0 from any to 192.168.1.1/32 port = 22 -> 192.168.1.100 port 22 tcp
#
# Rule 7 (NAT)
rdr eth1 from any to 33.33.33.33/32 port = 22 -> 192.168.1.100 port 22 tcp
rdr eth1 from any to 33.33.33.34/32 port = 22 -> 192.168.1.100 port 22 tcp
#
# Rule 8 (NAT)
rdr eth1 from any to 33.33.33.34/32 port = 22 -> 192.168.1.100 port 22 tcp