LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2004, 01:56 AM   #1
ckl
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd over WAN m2azer Linux - Networking 2 11-01-2005 07:18 PM
The WAN and X WeNdeL Linux - Security 5 08-08-2005 02:46 PM
Cant get WAN side ip...... hkl8324 Linux - Wireless Networking 1 06-08-2005 06:03 AM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
HP JetDirect over WAN slapshotct Linux - Security 2 03-25-2004 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration