Here is what I have to configure:
I was able to configure the server and the router to work as wanted all using em0 in this way:
Server
In /etc/rc.conf I have:
Router
in Network Configuration > Lan Setup
in Security > Firewall > Lan Wan Rules > Inbound Services
Cables
Tests
At this point I wanted to start using the second network card and have the internal traffic 192.168.#.# be on one card and anything else on the second card.
Those are the changes that I made thinking it would work:
Server
In /etc/rc.conf I added/changed
Router
in Network Configuration > Lan Setup
in Security > Firewall > Lan Wan Rules > Inbound Services
Cables
Tests
I am not a network expert and I am kind of lost here. What am I doing wrong?
- 1 server with FreeBSD 9.0 and 2 network cards
- 1 network card for internal IP addresses (em0: 192.168.1.231)
- 1 network card for external IP addresses (em1: I can assign any IP to this, currently is 172.16.1.10)
- the server is a DNS server, a Proxy Server, and a Samba server
- one router Netgear SRX5308 (SNMP enabled)
- A GB Cisco switch 48 ports (SNMP enabled)
- I want the internal traffic (192.168.1.1/255.255.252.0) to be routed in one card and any other traffic on the other network card.
I was able to configure the server and the router to work as wanted all using em0 in this way:
Server
In /etc/rc.conf I have:
Code:
defaultrouter="192.168.1.1"
ifconfig_em0="inet 192.168.1.231 netmask 255.255.252.0 broadcast 192.168.3.255"
gateway_enable="NO"
router_enable="NO"
Router
in Network Configuration > Lan Setup
Code:
queenVLan 1 192.168.1.1/255.255.252.0 DHCP Enabled
Port 1: queenVLan
Port 2: queenVLan
Port 3: queenVLan
Port 4: queenVLan
Code:
Filter IP Address WAN Users Destination
Allow Always 192.168.1.231 ANY 174.141.36.53
Cables
- Server em0 is connected to switch
- Switch is connectiong to LAN1 on router
Tests
- From the server I can ping 192.168.1.1
- From the server I can ping 172.16.1.1
- Everything works, I can access 174.141.36.53 and reach the server, from the server I can ping out and use it as a proxy and everything is dandy
At this point I wanted to start using the second network card and have the internal traffic 192.168.#.# be on one card and anything else on the second card.
Those are the changes that I made thinking it would work:
Server
In /etc/rc.conf I added/changed
Code:
defaultrouter="172.16.1.1"
static_routes="office"
route_office="-net 192.0.0.0/8 192.168.1.1"
ifconfig_em1="inet 172.16.1.10 netmask 255.255.255.0 broadcast 172.16.1.255"
Router
in Network Configuration > Lan Setup
Code:
queenVLan 1 192.168.1.1/255.255.252.0 DHCP Enabled
queenVLan10 10 172.16.1.1/255.255.255.0 DHCP Disabled
Port 1: queenVLan
Port 2: queenVLan
Port 3: queenVLan10
Port 4: queenVLan
in Security > Firewall > Lan Wan Rules > Inbound Services
Code:
Filter IP Address WAN Users Destination
Allow Always 172.16.1.10 ANY 174.141.36.54
Cables
- Server em0 is connected to switch
- Switch is connectiong to LAN1 on router
- Server em1 is connected to LAN3 on router
Tests
- From the server I can ping 192.168.1.1
- From the server I cannot ping 172.16.1.1
- Any attempt to reach outside the internal network fails.
- Changing the default_router back to 192.168.1.1 allows me to be able to access the outside world, but I still cannot ping 172.16.1.1
- Hardware has already been tested and all is working
I am not a network expert and I am kind of lost here. What am I doing wrong?