Re: iproute2 problems.



Hello,

ichi.brown@xxxxxxxxx a écrit :

eth0 - external ip
eth1 - internal ip

Don't you mean "interface" instead of "ip" ?

i'm forwarding an external ip to the internal interface at a port
that's responding.

What do you mean exactly ? Please explain the complete setup, network, hosts, addresses, NAT rules...

i can connect to the internal ip just fine.

%telnet 10.x.x.x 25
Trying 10.x.x.x...
Connected to xxxx.
Escape character is '^]'.
220 xxxx ESMTP

i need a higher port forwarded to port 25 on that machine for a couple
of asinine reasons. this is what i see when i tcpdump the eth1
interface without iproute2 rules in place.

%telnet 63.x.x.x smtps
Trying 63.x.x.x...
^C

# tcpdump -i eth1 host 206.x.x.x
tcpdump: listening on eth1
13:00:32.048622 206.x.x.x.1325 > 10.x.x.x.smtp: S
3731510172:3731510172(0) win 57344 <mss 1460> (DF)

What is 206.x.x.x ?

# tcpdump -i eth0 host 206.x.x.x
tcpdump: listening on eth0
13:00:44.621421 10.x.x.x.smtp > 206.x.x.x.1325: S
2172768788:2172768788(0) ack 3731510173 win 5792 <mss
1460,nop,nop,timestamp 33133661 50571017,nop,wscale 0> (DF)

so as you can see without the iproute2 rule, the 10.x.x.x traffic
leaves through the 63.x.x.x interface.

Do you mean eth0 ?
Of course it does : according to your routing table the destination 206.x.x.x matches the default route which goes through eth0. So why would you want it to do otherwise ?
.



Relevant Pages

  • TCPDUMP problems with eth1
    ... I'm having some problems with tcpdump. ... I need to capture only tcp ... traffic on eth1. ... capture works ok without the tcp keywords. ...
    (comp.os.linux.networking)
  • RE: DNS not responding
    ... tcpdump: listening on eth1 ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: How to use tcpdump
    ... > when I start tcpdump by just issuing ... > bash# tcpdump -i eth1 ... > the packets roll by to fast.. ...
    (Security-Basics)
  • Re: IGMP packets?
    ... > igmp queries and reports that A generates when joining/leaving a ... The weird thing is that it works when I do a tcpdump on B's eth1. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: ethernet inteface: lost connection
    ... eth1: unknown hardware address type 24 ... eth0: ... Listening on LPF/eth0/ ...
    (comp.os.linux.hardware)