Re: [LARTC] SNAT or DNAT or what?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Torsten,

This is not really a LARTC question (unless you fetch mail from an
arbitrary number of servers, in which case you'll need the
link-load-sharing multiple routing tables solution).

I'm guessing you solution is quite easy....see below.

 : I have a Debian-Woody-3.0 Router with 3 NIC's. Kernelversion 2.4.18

[ nice netmap snipped ]

 : Mail-Traffic over ISDN-Router
 :  WWW-Traffic over  DSL-Router
 : But why?

[ interface definitions snipped ]

 : Is this correct?

Well, yes.  But not complete.

 : ### my route:
 : Kernel IP routing table
 : Destination     Gateway         Genmask         Flags Metric Ref    Use
 : Iface
 : 192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
 : 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
 : 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
 : 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
 : and now my firewall-script:

Are you fetching mail from a particular mailserver?  If so:

# mailserver=213.165.64.20
# route add -host $mailserver gw 192.168.2.1

Or

# mailserver=213.165.64.20
# ip route add $mailserver via 192.168.2.1

-Martin

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@xxxxxxxxxxxxxx



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux