Hello Everyone,
I've been searching the web for 3 days now but am unable to find a solution. I have setup a home lab environment with 3 subnets and am using CentOS to route between 2 of them.
The internet gateway (AT&T router) is 172.31.251.225/29
CentOS eth2 is 172.31.251.227/29, eth0 is 172.31.251.233/29,
Linksys WRT54G WAN 172.31.251.234/29, LAN/WIFI 172.31.251.241/28
Destination Printer 172.31.251.254/28
=======================================================================
Connectivity so far:
Laptop with IP 172.31.251.226/29 is able to ping the Printer 172.31.251.254/28.
CentOS can ping 172.31.251.225/29, 172.31.251.254/28, google (74.125.224.194)
Linksys Diagnostic page is able to ping 172.31.251.233/29, 172.31.251.227/29
========================================================================
PROBLEM:
Packets can only travel one way. Linksys is unable to get to the AT&T router (172.31.251.225) or the internet. It can get to the interface facing the router but not past it. Attached is the output from "route", "iptables -L" and "sysctl.conf" on CentOS 6.4
========================================================================
Appreciate any help possible.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.31.251.232 * 255.255.255.248 U 0 0 0 eth0
172.31.251.224 * 255.255.255.248 U 0 0 0 eth2
172.31.251.240 172.31.251.234 255.255.255.240 UG 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
link-local * 255.255.0.0 U 1004 0 0 eth2
default homeportal 0.0.0.0 UG 0 0 0 eth2
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 172.31.251.224/27 anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536
# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456