Hi Experts,
I'm trying to set up a FreeBSD computer as router/gateway/firewall between four different networks. The topology looks like this:
The FreeBSD computer has 4 network interfaces, each of them manually configured respectively to .177.155 (vr0), .178.1 (rl0), .179.1 (rl1) and .180.1 (rl2), the IP address of the DSL-modem is .177.1.
I'm using IPFW and natd on the FreeBSD machine to control network traffic, at least that's the plan. Because everything works fine to get from any of the networks behind the FreeBSD router to the .177.0 network or even to the internet.
But I keep running into problems when it comes to getting a connection between the .178.0, .179.0 and .180.0 networks. For example from a computer in .178.0, IP is .178.20, I can ping any computer in the .177.0 network and every NIC on the FreeBSD router, but not to a computer in .179.0, IP is .179.22. and vice versa.
I tried different settings for loader.conf and rc.conf. I ended up with
loader.conf:
rc.conf:
Can anybody tell me what I am missing?
David
I'm trying to set up a FreeBSD computer as router/gateway/firewall between four different networks. The topology looks like this:
Code:
Internet
|
DSL-Modem/Router
|
192.168.177.0/24
|
+----FreeBSD router-----+
| | |
.178.0/24 .179.0/24 .180.0/24
I'm using IPFW and natd on the FreeBSD machine to control network traffic, at least that's the plan. Because everything works fine to get from any of the networks behind the FreeBSD router to the .177.0 network or even to the internet.
But I keep running into problems when it comes to getting a connection between the .178.0, .179.0 and .180.0 networks. For example from a computer in .178.0, IP is .178.20, I can ping any computer in the .177.0 network and every NIC on the FreeBSD router, but not to a computer in .179.0, IP is .179.22. and vice versa.
I tried different settings for loader.conf and rc.conf. I ended up with
loader.conf:
Code:
ipfw_load="YES"
ipdivert_laod="YES"
Code:
[...]
gateway_enable="YES"
routed_enable="YES"
natd_enable="YES"
natd_interface="vr0"
natd_flags="-dynamic -m"
firewall_enable="YES"
firewall_type="open"
[...]
David