Ok I'm lost I think. I have a firewall with 2 nics, one nic has numerous public IPs that redirect to private IP's behind the firewall. I've added another "external" NIC to put to put it on another network. My goal is to use that 3rd nic to feed traffic from the private IP range on fxp1 to IP's on the same lan as fxp2.
fxp0 > 333.333.333.1/24 (internet 1)
fxp0 > alias 333.333.333.10/32
etc more aliases on fxp0
fxp1 > 10.10.10.1/16 (internal lan - this is the range being nat'ed from fxp0 and now fxp2)
fxp 2 > 444.444.444.2/24 (internet 2)
The router on fxp2 has a static router in the form of "ip route 333.333.333.333 255.255.255.0 444.444.444.2". If I traceroute from a machine on that lan it shows 1 hop to the machine, however no traffic seems to be making it through.
The firewall itself has a rule in place in ipnat.rules to route the traffic, and a traceroute from 10.10.10.1 to 444.444.444.5 is successful with just one hop. So in short I think something's wrong with my ipnat rules thats not letting the traffic back in right.
ipnat.rules:
map fxp0 10.10.0.0/16 -> 0/32 proxy port ftp ftp/tcp
map fxp0 10.10.0.0/16 -> 0/32 portmap tcp/udp 40000:60000
map fxp0 10.10.0.0/16 -> 0/32
map fxp2 10.10.0.0/16 -> 444.444.444.2/31
rdr fxp0 333.333.333.10/32 port 80 -> 10.10.10.10 port 80
rdr fxp0 333.333.333.10/32 port 53 -> 10.10.10.10 port 53 tcp/udp
etc with the rdr's (lots of rdrs)
Firewall rules for the new interface are currently:
pass in quick on fxp2 all
pass out quick on fxp2 all
so I don't think they're causing a problem
I wonder if thats as confusing sounding as I think it will be.
I guess I could put in rdr rules for the ip on fxp2 but thats a kludge because anything that resolves in the 333.333.333.1/24 block accessed from internet 2 lan's will fail if its not explicitly mapped. Is there a way to make a new map or something that will use all the existing rdr's?
fxp0 > 333.333.333.1/24 (internet 1)
fxp0 > alias 333.333.333.10/32
etc more aliases on fxp0
fxp1 > 10.10.10.1/16 (internal lan - this is the range being nat'ed from fxp0 and now fxp2)
fxp 2 > 444.444.444.2/24 (internet 2)
The router on fxp2 has a static router in the form of "ip route 333.333.333.333 255.255.255.0 444.444.444.2". If I traceroute from a machine on that lan it shows 1 hop to the machine, however no traffic seems to be making it through.
The firewall itself has a rule in place in ipnat.rules to route the traffic, and a traceroute from 10.10.10.1 to 444.444.444.5 is successful with just one hop. So in short I think something's wrong with my ipnat rules thats not letting the traffic back in right.
ipnat.rules:
map fxp0 10.10.0.0/16 -> 0/32 proxy port ftp ftp/tcp
map fxp0 10.10.0.0/16 -> 0/32 portmap tcp/udp 40000:60000
map fxp0 10.10.0.0/16 -> 0/32
map fxp2 10.10.0.0/16 -> 444.444.444.2/31
rdr fxp0 333.333.333.10/32 port 80 -> 10.10.10.10 port 80
rdr fxp0 333.333.333.10/32 port 53 -> 10.10.10.10 port 53 tcp/udp
etc with the rdr's (lots of rdrs)
Firewall rules for the new interface are currently:
pass in quick on fxp2 all
pass out quick on fxp2 all
so I don't think they're causing a problem
I wonder if thats as confusing sounding as I think it will be.
I guess I could put in rdr rules for the ip on fxp2 but thats a kludge because anything that resolves in the 333.333.333.1/24 block accessed from internet 2 lan's will fail if its not explicitly mapped. Is there a way to make a new map or something that will use all the existing rdr's?