WAN : unable to ping to WAN
Hello all,
I am working on a AP/Router with linux version 2.4.19. Before goes into my problem detail, here are some setting on the router. For the kernel : Network Options Packet Socket [yes] Packet Socket: mmapped IO [yes] Network Packet Filtering (replaces ipchains) [yes] -> Network packet filtering debuggng [yes] Socket Filtering [yes] Unix Domain Sockets [yes] TCP/IP Networking [yes] -> IP: multicasting [yes] ----> IP: multicasting routing [yes] -------->IP: PIM-SM version 1 support [yes] -------->IP: PIM-SM version 2 support [yes] -> IP: Advance Router [yes] -> IP: Kernel level autoconfiguration [yes] ----> IP: DHCP support [yes] ----> IP: BOOTP support [yes] ----> IP: RARP support [yes] -> IP: ARP daemon support [yes] -> 802.1d Ethernet Bridging [yes] IP: Netfilter Configuration [yes] -> Connection tracking [yes] ----> FTP protocol support [yes] ----> IRC protocol support [yes] -> IP table support [yes] ----> limit match support [yes] ----> netfilter MARK match support [yes] ----> Connection state match support [yes] -> Packet filtering [yes] ----> REJECT target support [yes] -> Full NAT [yes] ----> MASQUERADE target support [yes] -> Packet mangling [yes] ----> MARK target support [yes] -> LOG target support [yes] ARP tables support [yes] WAN router [yes] For the network setup : [1] Bridge both LAN and WLAN into BR0 [2] set the BR0 IP (192.168.2.1) and up. [3] set the WAN IP (192.168.1.147) and up. [4] IPTABLES -P INPUT ACCEPT IPTABLES -P OUTPUT ACCEPT IPTABLES -P FORWARD ACCEPT [5] echo 1 > /proc/sys/net/ipv4/ip_forward [6] Set route table. Destination Gateway Mask Flags If 192.168.1.0 0.0.0.0 255.255.255.0 U ETH1 192.168.1.0 192.168.1.147 255.255.255.0 UG ETH1 192.168.2.0 0.0.0.0 255.255.255.0 U BR0 192.168.2.0 192.168.2.1 255.255.255.0 UG BR0 For the very first case: CASE 1: 1 router [R1], 2 PC [PC1 & PC2] [PC1] IP: 192.168.1.1 GW: 192.168.1.147 [PC1] Connected to [R1-WAN] [PC2] IP: 192.168.2.47 GW: 192.168.2.1 [PC2] Connected to [R1-LAN/BR0] Ping [PC2] from [PC1] - Pass Ping [PC1] from [PC2] - Pass Case 1 - Pass CASE 2: 2 routers[R1 & R2], 1 PC [PC1] [R1-LAN] IP: 192.168.1.1 [R1-LAN] Connected to [R2-WAN] [PC1] IP: 192.168.2.47 GW: 192.168.2.1 [PC1] Connected to [R2-LAN/BR0] Ping [R1-LAN] from [PC1] - Fail Ping [R2-WAN] from [PC1] - Pass Case 2 - Fail CASE 3: Same setting as CASE 2. The route table is updated with additional routing... Destination Gateway Mask Flags If 192.168.1.0 0.0.0.0 255.255.255.0 U ETH1 192.168.1.0 192.168.1.147 255.255.255.0 UG ETH1 192.168.2.0 0.0.0.0 255.255.255.0 U BR0 192.168.2.0 192.168.2.1 255.255.255.0 UG BR0 0.0.0.0 192.168.1.1 0.0.0.0 UG ETH1 However, same result with CASE 2; Ping [R1-LAN] from [PC1] - Fail Ping [R2-WAN] from [PC1] - Pass Case 3 - Fail Question: (1) Are there any setting wrong? (2) Do we miss out any things? Thanks in advance. |
All times are GMT -5. The time now is 06:24 AM. |