View Single Post
  #1   (View Single Post)  
Old 4th June 2008
hamba hamba is offline
Fdisk Soldier
 
Join Date: Apr 2008
Posts: 71
Default ip alias confusion

Hi,

On my FreeBSD 6.3 firewall I have 10 external ips.
I'm using ip alias and I can access the system perfectly with them and pf redirects all the traffic correctly to the assigned hosts. The problem I have is that I want my email server to use only one of the 10 ips when sending an email.

At the moment when I'm sending an email it will cycle trough all the ips on the external interface. each new connection made has a new ip, this counts for everything even http, ftp and ssh.

Code:
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 80.xx.yy.aa netmask 0xffffff00 broadcast 80.xx.yy.zzz
        inet 80.xx.yy.ab netmask 0xffffffff broadcast 80.xx.yy.ab
        inet 80.xx.yy.ac netmask 0xffffffff broadcast 80.xx.yy.ac
<snip>
        inet 80.xx.yy.aj netmask 0xffffffff broadcast 80.xx.yy.aj
        ether 00:11:6b:93:a4:31
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
In pf I'm redirecting all the traffic that goes to 80.xx.yy.ac to the email server on the internal network 192.168.3.4. So all traffic connecting from the internet to 80.xx.yy.ac sees the email server but when the email server connects to the internet its cycles trough all the ips from 80.xx.yy.aa to 80.xx.yy.aj and back again.

How can I get the email server on the internal network ip 192.168.3.4 to only use 80.xx.yy.ac for all its traffic and no other server my use that ip?

Thanks
hamba
Reply With Quote