LVS-Tun on pfsense ( freebsd )

maluyao ma.luyao at gmail.com
Wed Mar 28 14:12:57 BST 2007


ipip device on FreeBSD is gif0

FreeBSD command sample:

ifconfig gif0 create
ifconfig gif0 tunnel 10.0.0.3 10.0.0.1
ifconfig gif0 inet 172.16.0.3 172.168.0.1 netmask 255.255.255.0


2007/3/28, Joseph Mack NA3T <jmack at wm7d.net>:
> On Wed, 28 Mar 2007, Arief Setiawan wrote:
>
> > I'm not too sure how many people here are familiar with
> > pfsense. but, basically it's a fw software that sits on
> > top of a FreeBSD system.
>
> OK. Don't know it, sorry
>
> > There are docos on setting up LVS-Tun on FreeBSD on HOWTO
> > as well as in the mailing list. but I found that sometime
> > they offer different settings for LVS-Tun. for example :
> > are we using interface tunl0 or gif0 under FreeBSD ?
> >
> > some are suggesting to put the VIP in lo0 as well as in
> > tunl0. some are suggesting to set up IP-tunnel from linux
> > box ( as director ) -> free bsd ( as real server ) and the
> > other way around. I believe 'ldirectord' does the
> > ipvsadm/ip-in-ip wrap internally
>
> no. ldirectord is a wrapper around LVS that does failout.
> ipip encapsulation is done by LVS.
>
> > and send it to the realserver and hence there's no need to
> > set a separate tunnel just for this, no ?
> >
> > I've managed to setup LVS-Tun Linux ( director ) -> Linux ( realserver )
> > previously. and on Linux real-server
> > i'd just need to do the following ( this is after getting the director up
> > and using 'ipip' forwarding method ):
> >
> > root# modprobe ipip
> > root# ifconfig tunl0 192.168.2.72 netmask 255.255.255.255 broadcast
> > 192.168.2.72 up
> >
> > 2.72 being the VIP address
> >
> > I'm just wondering what would be the FreeBSD equivalent of those 2 commands?
> >
> > for example, i can't create a tunl0 interface on FreeBSD.
> > ifconfig tunl0 create
> > ifconfig: SIOCIFCREATE: Invalid argument
>
> I don't think the ipip device on *BSD is tunl
>
> Joe

Search lvs-users Archives
Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort

More information about the lvs-users mailing list