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]

 



Hi Ashok,

 : > Are you fetching mail from a particular mailserver?  If so:
 : > # mailserver=213.165.64.20
 : > # route add -host $mailserver gw 192.168.2.1
 : > # mailserver=213.165.64.20
 : > # ip route add $mailserver via 192.168.2.1
 : > -Martin
 :
 : Wouldnt setting up ip rules to forward the appropriate traffic through the
 : proper gateway be better?

Why use the RPDB if you don't need to?  I subscribe to the KISS notion
(keep it simple, stupid!).

If all of his mail connections are to a single "smarthost", or a small set
of IP addresses, there's no reason for him to use "ip rule", since he can
make a specific route in the main routing table to the destination.

If he is using multiple mailservers in "unknown" networks, then he'll need
to look at the link load sharing solutions, such as multipath routes, or
multiple outbound links with RPDB/fwmark'ing solutions.

-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