I am trying to set a router up in front of my FreeBSD gateway. I've configured the router to have DHCP on the WAN interface, and a static ip on the LAN interface. I've configured the same on my FreeBSD gateway:
I have set up a static route on the Router to allow it to communicate with clients. With this set up I can ping the clients and the internet from the router. From the FreeBSD gateway and the clients I can ping the Router but not the internet:
The routing table on the router is as follows:
I'm not sure why my clients and the FreeBSD gateway cannot access the internet. Any help would be greatly appreciated
Internet ----> DHCP [Router] 10.0.1.1 --> 10.0.1.2 [FreeBSD gateway] -> DHCP -> [Clients]
I have set up a static route on the Router to allow it to communicate with clients. With this set up I can ping the clients and the internet from the router. From the FreeBSD gateway and the clients I can ping the Router but not the internet:
FreeBSD:~ % ping 10.0.1.1
PING 10.0.1.1 (10.0.1.1): 56 data bytes
64 bytes from 10.0.1.1: icmp_seq=0 ttl=64 time=0.412 ms
64 bytes from 10.0.1.1: icmp_seq=1 ttl=64 time=0.352 ms
64 bytes from 10.0.1.1: icmp_seq=2 ttl=64 time=0.374 ms
FreeBSD:~ % traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 40 byte packets
1 10.0.1.1 (10.0.1.1) 0.513 ms 0.404 ms 0.348 ms
2 * * *
Client $ traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 52 byte packets
1 freebsd (10.0.0.1) 0.489 ms 0.258 ms 0.227 ms
2 10.0.1.1 (10.0.1.1) 0.585 ms 0.578 ms 0.491 ms
3 * *^C
The routing table on the router is as follows:
$ netstat -ar
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 124-149-191-1.d 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 10.0.1.2 255.255.255.0 UG 0 0 0 eth1
10.0.1.0 * 255.255.255.0 U 0 0 0 eth1
124.149.191.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
I'm not sure why my clients and the FreeBSD gateway cannot access the internet. Any help would be greatly appreciated