DNAT problem with 2 ISPs (sorry)

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

 



I'm sorry about (no subject)

> Hi
> I have 2 connections to the Internet. The default route points to ISP1
> but my mails are comming from (to IP of) ISP2. My rules to DNAT SMTP
> Traffic to an internel machine does not work (it did with only one
> ISP).
>
> I think it has something todo with the routing but i dont know how to
> solve.
>
> Here are my rules:
> $IPTABLES -t nat -A POSTROUTING -o $EXTIFINODE -j SNAT --to $EXTIPINODE
> $IPTABLES -t nat -A POSTROUTING -o $EXTIFPOST -j SNAT --to $EXTIPPOST #
> for mailserver
> $IPTABLES -t nat -A POSTROUTING -o $EXTIFINODE -s 192.168.100.2 -j SNAT
> --to $EXTIPINODE$IPTABLES -t nat -A POSTROUTING -o $EXTIFPOST -s
> 192.168.100.2 -j SNAT--to $EXTIPPOST$IPTABLES -t nat -A PREROUTING -i
> $EXTIFINODE -d $EXTIPINODE -s$UNIVERSE
> -p tcp --dport 25 -j DNAT --to 192.168.100.2$IPTABLES -t nat -A
> PREROUTING -i $EXTIFPOST -d $EXTIPPOST -s $UNIVERSE -p
> tcp --dport 25 -j DNAT --to 192.168.100.2
>
> thanks for any help
> Andreas Grabner





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux