From owner-freebsd-questions Wed Apr 25 3:21:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bryden.apana.org.au (bryden.apana.org.au [203.3.126.129]) by hub.freebsd.org (Postfix) with ESMTP id ECEEA37B422 for ; Wed, 25 Apr 2001 03:21:24 -0700 (PDT) (envelope-from dougy@bryden.apana.org.au) Received: from oracle (CPE-61-9-141-160.vic.bigpond.net.au [61.9.141.160]) by bryden.apana.org.au (8.9.3/8.9.3) with SMTP id UAA04870 for ; Wed, 25 Apr 2001 20:20:33 +1000 (EST) (envelope-from dougy@bryden.apana.org.au) Message-ID: <007501c0cd71$77e70040$0400a8c0@oracle> From: "Doug Young" To: Subject: VPN / VLAN routing Date: Wed, 25 Apr 2001 20:21:13 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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