Displaying 2 results from an estimated 2 matches for "internet_ip_here".
2019 Mar 05
2
getent not working after installing firewall
Am 05.03.19 um 00:22 schrieb Mark Foley via samba:
> /etc/resolv.conf:
> nameserver 192.168.0.2
> nameserver 209.18.47.62
>
> /etc/hosts:
> 127.0.0.1 localhost
> 192.168.0.60 ccarter
>
> So, the gateway is the Sonicwall firewall, 192.168.0.1. Nameservers are the DC (192.168.0.2)
> and one of the ISP name servers. The IP is static and is set
2019 Mar 05
4
getent not working after installing firewall
...sion of howto setup.
edit /etc/iproute2/rt_tables and Add :
10 OfficeLan
20 InternetWan
Lookup the routing tables:
ip route show table OfficeLan
ip route show table InternetWan
The default gateway's is to the internet. ( change ethX to you network interface name )
ip route add default via internet_IP_HERE dev eth0 table InternetWan
ip route add default via lan_IP_HERE dev eth1 table OfficeLan
Check it :
ip route show table main
Add lan routing rules.
ip rule add from lan_IP_HERE/24 lookup OfficeLan prio 900
ip rule add to lan_IP_HERE/24 lookup OfficeLan prio 900
ip rule
Add Wan routing rules...