Hi, my problem is very simple but I dont know how to solve it
in my router(FBSD 13) I have 2 network interfaces , 1 is the WAN and the other is the LAN, pretty normal
but in the WAN interface I have multiples Ip's , Rdr rules and one gateway
the traffic from outside ,just enter fine to the firewall, but sometimes get back from the wrong gateway and the conecction from outside
get a timeout
sorry for the simple post,when I have more time I give more info
here is thebig picture:
2 range of public statics ip's associed to various services(I change the ip's for obvius reasons)
wan ip1: 200.54.12.11 / gateway 200.54.12.10
wan ip2: 220.11.11.11 / gateway 220.11.11.10
lan ip : 10.1.1.1
so, in the interface em0(external) I have the wan ip1 as principal and wan ip2 as alias
in the internal (em1) I have the lan ip
in the PF rules i have:
ext_if="em0"
int_if="em1"
ip1="200.54.12.11"
ip2="220.11.11.11"
nat on $ip2 from 10.1.1.11 to any -> $ip2
rdr pass log(all) on $ext_if proto tcp from any to $ip1 port 3000 -> 10.1.1.10 port 22
rdr pass log(all) on $ext_if proto tcp from any to $ip2 port 3001 -> 10.1.1.11 port 22
and in the route table I have 200.54.12.10 as default gateway
so the login attemps to ip2 ends out in timeout because the trafics enter but not go out
(I debug it with tcpdump)
in my router(FBSD 13) I have 2 network interfaces , 1 is the WAN and the other is the LAN, pretty normal
but in the WAN interface I have multiples Ip's , Rdr rules and one gateway
the traffic from outside ,just enter fine to the firewall, but sometimes get back from the wrong gateway and the conecction from outside
get a timeout
sorry for the simple post,when I have more time I give more info
here is thebig picture:
2 range of public statics ip's associed to various services(I change the ip's for obvius reasons)
wan ip1: 200.54.12.11 / gateway 200.54.12.10
wan ip2: 220.11.11.11 / gateway 220.11.11.10
lan ip : 10.1.1.1
so, in the interface em0(external) I have the wan ip1 as principal and wan ip2 as alias
in the internal (em1) I have the lan ip
in the PF rules i have:
ext_if="em0"
int_if="em1"
ip1="200.54.12.11"
ip2="220.11.11.11"
nat on $ip2 from 10.1.1.11 to any -> $ip2
rdr pass log(all) on $ext_if proto tcp from any to $ip1 port 3000 -> 10.1.1.10 port 22
rdr pass log(all) on $ext_if proto tcp from any to $ip2 port 3001 -> 10.1.1.11 port 22
and in the route table I have 200.54.12.10 as default gateway
so the login attemps to ip2 ends out in timeout because the trafics enter but not go out
(I debug it with tcpdump)