|
NAMEif_ipsec —
IPsec virtual tunneling interface
SYNOPSISTheif_ipsec network interface is a part of the
FreeBSD IPsec implementation. To compile it into the
kernel, place this line in the kernel configuration file:
options IPSEC It can also be loaded as part of the options IPSEC_SUPPORT DESCRIPTIONTheif_ipsec network interface is targeted for creating
route-based VPNs. It can tunnel IPv4 and IPv6 traffic over either IPv4 or IPv6
and secure it with ESP.
When the Each EXAMPLESThe example below shows manual configuration of an IPsec tunnel between two FreeBSD hosts. Host A has the IP address 192.168.0.3, and host B has the IP address 192.168.0.5.On host A: ifconfig ipsec0 create reqid 100 ifconfig ipsec0 inet tunnel 192.168.0.3 192.168.0.5 ifconfig ipsec0 inet 172.16.0.3/16 172.16.0.5 setkey -c add 192.168.0.3 192.168.0.5 esp 10000 -m tunnel -u 100 -E rijndael-cbc "VerySecureKey!!1"; add 192.168.0.5 192.168.0.3 esp 10001 -m tunnel -u 100 -E rijndael-cbc "VerySecureKey!!2"; ^D On host B: ifconfig ipsec0 create reqid 200 ifconfig ipsec0 inet tunnel 192.168.0.5 192.168.0.3 ifconfig ipsec0 inet 172.16.0.5/16 172.16.0.3 setkey -c add 192.168.0.3 192.168.0.5 esp 10000 -m tunnel -u 200 -E rijndael-cbc "VerySecureKey!!1"; add 192.168.0.5 192.168.0.3 esp 10001 -m tunnel -u 200 -E rijndael-cbc "VerySecureKey!!2"; ^D Note the value 100 on host A and value 200 on host B are used as reqid. The same value must be used as identifier of the policy entry in the setkey(8) command. SEE ALSOgif(4), gre(4), ipsec(4), ifconfig(8), setkey(8)AUTHORSAndrey V. Elsukov <ae@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |