LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-06-2008, 07:07 PM   #1
erauqssidlroweht
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Rep: Reputation: 0
IPTables - 'Time exceeded in-transit'


I'm a picture person - so let's start with a network diagram:
Code:
VPNClient01(10.10.10.10)---VPN/PublicLan---(10.10.10.1 Tun0)IPCop(eth0 10.4.4.20)---(10.4.4.1)RemoteGateway01---WWW---Server01
I'm running IPCop as a Firewall/IDS/NAT and VPN terminator. The VPNClient01 needs to encrypt any data destined for Server01. (The VPN Tunnel is the 10.10.10.* network).

OBSERVATION 1) From the CLI on IPCop I can traceroute all the way to server01.

OBSERVATION 2) From the CLI on VPNClient01 I can traceroute but only receive the first hop of 10.10.10.1.

OBSERVATION 3) TCPDump on eth0 give the following while tracerouting from VPNClient01:
Code:
#tcpdump -i eth0
14:24:17.557041 IP 10.4.4.52 > SERVER01: ICMP echo request, id 768, seq 57088, length 72
14:24:17.612664 IP SERVER01 > 10.4.4.52: ICMP time exceeded in-transit, length 36
OBSERVATION 4) Eth1 - is the network with the PublicLAN & the 'red' network. Eth0 - is the 'green' network and as the RemoteGateway. Tun0 is the VPN tunnel. 'Green' Network successfully passes into the 'red' network when destined for the a PublicLAN IP address (192.168.1.*).


My packets seem to be gets lost - upon return to the Tun0?


Code:
# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
CUSTOMPREROUTING  all  --  anywhere             anywhere
SQUID      all  --  anywhere             anywhere
PORTFW     all  --  anywhere             anywhere

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
CUSTOMPOSTROUTING  all  --  anywhere             anywhere
REDNAT     all  --  anywhere             anywhere
SNAT       all  --  10.10.10.0/24       anywhere            to:10.4.4.50-10.4.4.52

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain CUSTOMPOSTROUTING (1 references)
target     prot opt source               destination

Chain CUSTOMPREROUTING (1 references)
target     prot opt source               destination

Chain PORTFW (1 references)
target     prot opt source               destination

Chain REDNAT (1 references)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere

Chain SQUID (1 references)
target     prot opt source               destination
Performing the following didn't seem to change anything:
Code:
iptables -t nat -A POSTROUTING --source 10.4.4.0/24 -o tun0 -j SNAT --to 10.10.10.10
Any ideas?
 
Old 08-07-2008, 04:48 PM   #2
erauqssidlroweht
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
[solved]

It seems in my situation RemoteGateway only accepts traffic from a few IP addresses. After change the NAT statement to mimic a computer that was already transmitting on the remote network I could Ping all the way through. *Sighs* I wish they would have told me that to begin with....


iptables -t nat -A POSTROUTING --source 10.10.10.0/24 -o eth0 -j SNAT --to 10.4.4.52
 
  


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
LXer: New York City Transit agency chooses Novell to secure and manage its employee i LXer Syndicated Linux News 0 09-15-2007 03:11 AM
M-Audio USB Transit not detected nelamvr6 Ubuntu 0 06-29-2007 01:35 AM
CPU Time exceeded problem QPhaze Linux - Server 0 03-28-2007 06:28 PM
php/max time exceeded/execute via shell? jdc32 Linux - Software 0 01-31-2005 05:22 AM
The Transit of Venus itsjustme General 6 06-09-2004 01:41 PM

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

All times are GMT -5. The time now is 02:07 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