[SOLVED] External nic unreachable from local network
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
# Generated by iptables-save v1.4.5 on Mon Jan 11 12:22:25 2010
*raw
:PREROUTING ACCEPT [1038480:666298388]
:OUTPUT ACCEPT [52176:5482685]
COMMIT
# Completed on Mon Jan 11 12:22:25 2010
# Generated by iptables-save v1.4.5 on Mon Jan 11 12:22:25 2010
*mangle
:PREROUTING ACCEPT [14108:12047521]
:INPUT ACCEPT [96646:92066698]
:FORWARD ACCEPT [1111826:653133089]
:OUTPUT ACCEPT [3326:235073]
:POSTROUTING ACCEPT [1181462:660486512]
COMMIT
# Completed on Mon Jan 11 12:22:25 2010
# Generated by iptables-save v1.4.5 on Mon Jan 11 12:22:25 2010
*nat
:PREROUTING ACCEPT [160:13709]
:POSTROUTING ACCEPT [28:1911]
:OUTPUT ACCEPT [20:1430]
-A POSTROUTING -s 192.168.1.0/24 -o ppp0 -j MASQUERADE
COMMIT
# Completed on Mon Jan 11 12:22:25 2010
# Generated by iptables-save v1.4.5 on Mon Jan 11 12:22:25 2010
*filter
:INPUT ACCEPT [4442:6226870]
:FORWARD ACCEPT [9621:5816943]
:OUTPUT ACCEPT [3326:235073]
COMMIT
# Completed on Mon Jan 11 12:22:25 2010
internal network has access to internet and works pretty fine, but
external interface ip is unreachable, i.e. clients can't reach x.y.z.a.
according to tcpdump packets are transmitted to router, but there's no response.
somehow iptables -t nat -A PREROUTING -i eth2 -d x.y.z.a -j DNAT --to-destination 192.168.1.1 helps, but imho there should be some other solution.
any ideas?
kernel is 2.6.31.6, architecture is x86_64.
P.S. i've also tried iptables -A POSTROUTING ! -d x.y.z.a -s 192.168.1.0/24 -j MASQUERADE that didn't help either.
I've got router with: eth2 - local network (192.168.1.1), ppp0 - uplink (x.y.z.a)
...
internal network has access to internet and works pretty fine, but
external interface ip is unreachable, i.e. clients can't reach x.y.z.a.
according to tcpdump packets are transmitted to router, but there's no response.
"external interface ip is unreachable, i.e. clients can't reach x.y.z.a" - are you talking about your router interface?
Your route may respond nothing, and it is good. Try to ping it interface, but check if ICMP is enabled.
I'm afraid I am beyond my understanding with this suggestion, but the example iptables scripts that I can find does not specify a source parameter in the nat POSTROUTING line, so try instead of (in the *nat section):
-A POSTROUTING -s 192.168.1.0/24 -o ppp0 -j MASQUERADE
just:
-A POSTROUTING -o ppp0 -j MASQUERADE
and see if that helped. Perhaps the address gets translated before the postrouting occurs? If this is correct I am sure there is someone here that can provide insight.
Regards
"external interface ip is unreachable, i.e. clients can't reach x.y.z.a" - are you talking about your router interface?
Your route may respond nothing, and it is good. Try to ping it interface, but check if ICMP is enabled.
yes, i'm talking about my router external nic.
i'm doing ping, pings are enabled, but it doesn't work.
Quote:
Originally Posted by jeff_k
I'm afraid I am beyond my understanding with this suggestion, but the example iptables scripts that I can find does not specify a source parameter in the nat POSTROUTING line, so try instead of (in the *nat section):
-A POSTROUTING -s 192.168.1.0/24 -o ppp0 -j MASQUERADE
just:
-A POSTROUTING -o ppp0 -j MASQUERADE
and see if that helped. Perhaps the address gets translated before the postrouting occurs? If this is correct I am sure there is someone here that can provide insight.
Regards
Are you trying to ping it from outside or from LAN?
If from LAN pings really may not return, and from LAN you should ping LAN interface of you router.
I also suggest to turn firewall OFF for test period.
Are you trying to ping it from outside or from LAN?
If from LAN pings really may not return, and from LAN you should ping LAN interface of you router.
I also suggest to turn firewall OFF for test period.
i'm trying to ping it from lan. ping doesn't return. disabling firewall doesn't help. i did a dirty hack:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.