Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2001 20:21:13 +1000
From:      "Doug Young" <dougy@bryden.apana.org.au>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   VPN / VLAN routing 
Message-ID:  <007501c0cd71$77e70040$0400a8c0@oracle>

next in thread | raw e-mail | index | archive | help
I've been tearing hair out for days trying to figure out vtund configuration
.... given the almost total lack of documentation its becoming a real
headache.
I've attached the vtund.conf files in the hope that someone might have a
clue about this stuff

options {
  port 5555;

  # Path to various programs
  ppp           /usr/sbin/pppd;
  ifconfig      /sbin/ifconfig;
  route         /sbin/route;
  firewall      /sbin/ipfw;
}

# Default session options
default {
  compress no;
  speed 0;
}

# TUN example. Session 'cobra'.
cobra {
  pass  password;
  type  tun;
  device tun1;
  proto udp;
  compress no;
  speed 0;
  encrypt yes;
  keepalive yes;

  up {
        # Connection is Up

        # 10.3.0.1 10.3.0.2 netmask 255.255.255.0";
        ifconfig "%% 10.3.0.1 pointopoint 10.3.0.2 mtu 1450";
        route "add -net 203.3.126.0 -netmask 255.255.255.0 10.3.0.2";
 };

  down {
        route "delete -net 203.3.126.0 -netmask 255.255.255.0 10.3.0.2";
        ifconfig ""%% down";
 };
}


GW2



options {
  port 5555;
  persist yes;
  timeout 60;

  # Path to various programs
  ppp           /usr/sbin/pppd;
  ifconfig      /sbin/ifconfig;
  route         /sbin/route;
  firewall      /sbin/ipfw;
}

# TUN example. Host 'cobra'.
cobra {
  pass  password;
  device tun1;
  proto udp;
  compress no;
  speed 0;
  encrypt yes;
  keep-alive yes;

up {
        # Connection is Up

        # Assign IP addresses.
        ifconfig "%% 10.3.0.2 pointopoint 10.3.0.1 mtu 1450";
        route "add -net 192.168.0.0 -netmask 255.255.255.0 10.3.0.1";
  };

down {
        # Connection is Down

        route "delete -net 192.168.0.0";
        ifconfig "%% down";

  };
}



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?007501c0cd71$77e70040$0400a8c0>