I must be missing some simple part of the configuration process, but I can't find it myself.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I have a Gentoo Server connected to LAN.
The LAN is a production environment so I want to be careful with testing some items on the Gentoo Server.
I've set up a static ip in the the /etc/conf.d/net:
Code:
config_eno1="10.10.0.1 netmask 255.255.255.0 broadcast 10.10.0.255"
routes_eno1="default via 192.168.1.1
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The dhcp server/routerbox controlling the LAN runs slackware 14.
I've added the following rules to the iptables firewall:
Code:
iptables -t filter -I INPUT -i eth1 -s 10.10.0.0/24 -j ACCEPT
iptables -t filter -I FORWARD -i eth1 -s 10.10.0.0/24 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0((eth0 is the internet-facing ethernet)) -s 10.10.0.0/24 -j MASQUERADE
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Also, in case the dhcp server is an issue, I added a 10.10.0.0/24 segment to it:
Code:
subnet 10.10.0.0 netmask 255.255.255.0 {
range 10.10.0.1 10.10.0.100;
}
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I've rebooted the Gentoo Server.
I've stopped and re-started dhcpd and iptables services on the Slackware router.
When I try to ping the router from Gentoo server:
Code:
connect: Network is unreachable
When I try to ping the Gentoo server from the router:
Code:
10 packets transmitted, 0 received, 100% packet loss, time 8997ms
What am I missing to get a 10.10.0.1 device to reach the internet on a LAN segment in the 192.168.1.0/24 range?
Thank you for your help.