1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-18 17:27:20 +01:00
fwbuilder/test/ipf/firewall1-nat.conf.orig
2011-01-03 13:01:06 -08:00

27 lines
1.4 KiB
Plaintext
Executable File

#
# Rule 1 (NAT)
map eth0 from 192.168.1.10/32 to any -> 22.22.22.23/32 portmap tcp/udp auto
map eth1 from 192.168.1.10/32 to any -> 22.22.22.23/32 portmap tcp/udp auto
map eth2 from 192.168.1.10/32 to any -> 22.22.22.23/32 portmap tcp/udp auto
map eth3 from 192.168.1.10/32 to any -> 22.22.22.23/32 portmap tcp/udp auto
map eth0 from 192.168.1.10/32 to any -> 22.22.22.23/32
map eth1 from 192.168.1.10/32 to any -> 22.22.22.23/32
map eth2 from 192.168.1.10/32 to any -> 22.22.22.23/32
map eth3 from 192.168.1.10/32 to any -> 22.22.22.23/32
#
# Rule 3 (NAT)
map eth1 from 192.168.1.0/24 to any -> 22.22.22.22/32 portmap tcp/udp auto
map eth1 from 192.168.1.0/24 to any -> 22.22.22.22/32
map eth3 from 192.168.1.0/24 to any -> 22.22.23.23/32 portmap tcp/udp auto
map eth3 from 192.168.1.0/24 to any -> 22.22.23.23/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
map eth2 from 192.168.1.0/24 to any -> 192.168.2.1/32 portmap tcp/udp auto
map eth2 from 192.168.1.0/24 to any -> 192.168.2.1/32
#
# Rule 4 (NAT)
map eth1 from 192.168.1.0/24 to any -> 22.22.22.22/32 portmap tcp/udp auto
map eth1 from 192.168.1.0/24 to any -> 22.22.22.22/32
map eth3 from 192.168.1.0/24 to any -> 22.22.23.23/32 portmap tcp/udp auto
map eth3 from 192.168.1.0/24 to any -> 22.22.23.23/32