2 internet connections

From: Antoine Jacoutot (ajacoutot_at_lphp.org)
Date: 09/17/03

  • Next message: Martin Jessa: "Freeradius and Mikrotik as NAS"
    Date: Wed, 17 Sep 2003 12:02:55 +0200
    To: freebsd-isp@FreeBSD.ORG
    
    

    Hi !

    I wanted to know if the following setup could work under FreeBSD, and if
    so, where should I start to look for information.
    Basically, I would like my FreeBSD box to be a router for 2 networks and
    2 internet connections... nothing fancy yet (no failover nor load
    balancing) something like that:

    net 1 --> internet = NAT with internet connection 1
    net 2 --> internet = NAT with internet connection 2
    net 1 <--> net 2 = simple routing

    Is it doable ?
    I'm also concerned about the default gateway here... what should it be ?

    Someone told me to try a setup like this:

    ipfw add divert 8668 ip from <net1> to any not <net2> via tun0 out
    ipfw add divert 8669 ip from <net2> to any net <net1> via tun1 out
    ipfw add divert 8668 ip from any not <net2> to any me tun0 in
    ipfw add divert 8669 ip from any not <net1> to any me tun0 in
    natd -p 8868 -n tun0
    natd -p 8869 -n tun1

    Thanks a lot for any info you can provide regarding this question.

    Regards,

    Antoine

    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Martin Jessa: "Freeradius and Mikrotik as NAS"

    Relevant Pages

    • 2 internet connections
      ... I wanted to know if the following setup could work under FreeBSD, ... Someone told me to try a setup like this: ... ipfw add divert 8668 ip from any not to any me tun0 in ...
      (freebsd-questions)
    • stability problem, disappearing interfaces
      ... The setup runs smoothly for days and even ... tun0: no such interface ... RTL internal phy ... pckbc0 at isa0 port 0x60/5 ...
      (comp.unix.bsd.openbsd.misc)
    • Re: How to turn DNS off in sshd_config?
      ... >> is a feature, not a bug. ... The solution is to fix your naming setup. ... I use putty to connect to freebsd. ... Sometimes connection fails and I need to restart ppp (it ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Internet 2
      ... I just setup a freebsd box with the 5.1 release to be a gateway/firewall. ... The installation was smooth and to setup the gateway/firewall with nat a lot of sources are available on Internet. ...
      (freebsd-questions)
    • RE: [Freebsd-security] Re: Possible compromise ?
      ... is that you reinstall. ... I was not able to install and setup FreeBSD by ... >> me to retrieve connection dates from that file. ...
      (FreeBSD-Security)