Okay -- I am baffled. Here is my nat.conf file. Minor changes as far as layout. However I am getting the following error :
Code:
$ sudo pfctl -N /etc/nat.conf
/etc/nat.conf:0: syntax error
pfctl: syntax error in file: nat rules not loaded
$
How can a file that starts at a line 1, have a line 0 error
??? ??? ??? ??? ???
I am not professing to be a god at this, but what the hell is wrong here?
/etc/nat.conf contents
Code:
#Name the adapters to the above specifications
MCLEOD="xl0"
EXCHANGE="ne1"
SBC="ne3"
LAN="ne4"
map $SBC 192.168.254.2/32 -> 64.109.120.121/32 proxy port 21 ftp/tcp
map $SBC 192.168.254.2/32 -> 64.109.120.121/32 protmap tcp/udp 40000:60000
map $SBC 192.168.254.2/32 -> 64.109.120.121/32
# Redirect WAN ports for mail to LAN side
rdr on $SBC from any to 64.109.120.121/32 port 25 -> 192.168.2.2 port 25
rdr on $SBC from any to 64.109.120.121/32 port 110 -> 192.168.2.2 port 110
rdr on $SBC from any to 64.109.120.121/32 port 143 -> 192.168.2.2 port 143
rdr on $SBC from any to 64.109.120.121/32 port 220 -> 192.168.2.2 port 220
rdr on $SBC from any to 64.109.120.121/32 port 585 -> 192.168.2.2 port 585
rdr on $SBC from any to 64.109.120.121/32 port 993 -> 192.168.2.2 port 993
rdr on $SBC from any to 64.109.120.121/32 port 995 -> 192.168.2.2 port 995
rdr on $SBC from any to 64.109.120.121/32 port 22 -> 192.168.2.2 port 22
# NAT Rules
# Use the MCLEOD DSL pipe for LAN internet connectivity
nat on $MCLEOD from $LAN to any -> $MCLEOD
# Use the SBC DSL pipe for LAN internet connectivity
# nat on $SC from $LAN to anu -> $SBC
Bookmarks