Issues with 2 instances of NATD
Haulmark, Chris
chris at sigd.net
Mon Oct 4 00:29:48 PDT 2004
> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of
> Joseph Begumisa
> Sent: Monday, October 04, 2004 2:26 AM
> To: freebsd-questions at freebsd.org
> Subject: Issues with 2 instances of NATD
>
>
> I want traffic from one machine on the LAN with ip address
> 169.254.0.18 to
> go out through ISP2 and traffic from the rest of the machines
> on the LAN
> o go through ISP1. However, traffic from all machines
> including that one
> goes through ISP1. Perhaps I'm missing something. Below is
> my setup and
> configuration details:
This is because of your default route which is assigning all the packets
to go through the ISP1.
>
> ISP1 ISP2
> | |
> | |
> 212.XX.XX.117 vr0 | |vr1 193.1XX.XXX.162
> ------------------
> | BSD GATEWAY |
> ------------------
> | fxp0 169.254.0.1
> |
> -------- --------
> | | | | | LAN 169.254.0.0/24
>
> *default route on BSD Gateway is thru ISP1.
>
> NATD Processes Running:
> ----------------------
>
> /sbin/natd -f /etc/natd.cf -n vr0
> /sbin/natd -f /etc/natd2.cf -n vr1
>
> natd.cf:
> -------
> log yes
> deny_incoming no
> use_sockets yes
> same_ports yes
> verbose no
> port 8668
> interface fxp0
> unregistered_only no
>
>
> natd2.cf:
> --------
> log yes
> deny_incoming no
> use_sockets yes
> same_ports yes
> verbose no
> port 8669
> interface fxp0
> unregistered_only no
>
> natd configuration in firewall:
> ------------------------------
> /sbin/ipfw add 43 divert 8669 all from 169.254.0.18 to any via vr1
> /sbin/ipfw add 46 divert 8668 all from any to any via vr0
>
>
> Joseph.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>
>
--
Chris Haulmark
System Admin. Freelancer
"In market for IT corrections for a salary."
More information about the freebsd-questions
mailing list