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


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.

        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 netmask 0xffffffff broadcast
        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 to the email server on the internal network So all traffic connecting from the internet to 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 to only use for all its traffic and no other server my use that ip?

Reply With Quote