Building Linux Virtual Private Networks
(view this code in a separate window)
Ether-tunnel {
  pass  password1;
  type  ether;
  proto tcp;
  comp  zlib:9;
  encr  yes;
  keepalive yes;

   up {
       ifconfig "%% 192.168.254.253 netmask 255.255.255.252";
       brctl addbr bridge0
       brctl addif bridge0 eth1
       brctl addif bridge0 %%
       ifconfig "eth1 0.0.0.0"
       ifconfig "%% 0.0.0.0"
       ifconfig "bridge0 192.168.1.254 netmask 255.255.255.0"
      };

 down {
       brctl delbr bridge0
       ifconfig "eth1 192.168.1.254 netmask 255.255.255.0";
      };
}

Home
Contents
Authors
Reviews
Errata
Colophon
Source Code
Sample Chapter
Suggested Reading
Purchase

New Riders Publishing