|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 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 |
|
|||
nat on rl0 inet from 192.168.3.4 to any -> 80.xx.yy.ac
verify using "pfctl -sn" When we define interface it uses round robin method and load balances new sessions using all assigned ip addresses on that interface. Last edited by osman; 4th June 2008 at 07:02 PM. |
|
|||
Thanks,
I've added that to pf and then I also had to add this to postfix smtp_bind_address = 192.168.3.4. Its all working just the way I want it now Thanks again |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing MAC address to an alias interface? | DNAeon | FreeBSD General | 6 | 20th January 2009 04:48 PM |
Mounting NAS as apache alias directory | Yuka | FreeBSD General | 7 | 18th July 2008 02:58 PM |
Install confusion | delboy | FreeBSD Ports and Packages | 2 | 25th May 2008 09:20 PM |