Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2003 17:06:53 -0800
From:      Jeff Koncz <jkoncz@attbi.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   forward outgoing traffic to alias IP
Message-ID:  <200303211706.53897.jkoncz@attbi.com>

next in thread | raw e-mail | index | archive | help
My network provider has gotten their entire IP range listed in SPEWS beca=
use=20
of several rogue customers spamming.  This in turn has caused our own mai=
l to=20
be blocked on various hosts.  At the moment we're not in a situation wher=
e we=20
can move providers.  So, the solution the provider suggested was to forwa=
rd=20
all outgoing port 25 traffic from the primary IP through an alias IP they=
=20
assigned that is on a different subnet.  They only knew how to do this in=
=20
Linux...so they were no help.  I thought it might be as simple as adding =
an=20
ipf rule, but after doing a lot of searching and reading on the topic I'v=
e=20
confused myself more.  What tools should I use to accomplish this and wha=
t is=20
the best method in FreeBSD?

I'm running 4.5-STABLE.  Here's the relevant lines from my /etc/rc.conf

ifconfig_fxp0=3D"inet 91.200.97.175 netmask 255.255.255.192"
ifconfig_fxp0_alias0=3D"90.61.128.211 netmask 255.255.255.255"

Here's the parameters of my interface from ifconfig:

# ifconfig fxp0
fxp0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 91.200.97.175 netmask 0xffffffc0 broadcast 91.200.97.191
        inet6 fe80::202:b3ff:fe4c:2c01%fxp0 prefixlen 64 scopeid 0x1
        inet 90.61.128.211 netmask 0xffffffff broadcast 90.61.128.211
        ether 00:02:b3:4c:2c:01
        media: Ethernet autoselect (10baseT/UTP)
        status: active

Thanks,

- Jeff Koncz

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303211706.53897.jkoncz>