OpenVPN networking¶
- Sadržaj
- OpenVPN networking
Instalacija klijenta¶
Instalirati openvpn na mrežni disk¶
ipkg -d net openvpn
root@router-wan-sa-1:~# ipkg install -d net openvpn Installing openvpn (2.0.9-2) to net... Downloading http://openwrt.bring.out.ba/packages/brcm-2.4/./openvpn_2.0.9-2_mipsel.ipk Installing kmod-tun (2.4.35.4-brcm-2.4-1) to net... Downloading http://openwrt.bring.out.ba/packages/brcm-2.4/./kmod-tun_2.4.35.4-brcm-2.4-1_mipsel.ipk Configuring kmod-tun Configuring openvpn Done.
root@router-wan-sa-1:~# ipkg files openvpn
Package openvpn (2.0.9-2) is installed on net and has the following files: /mnt/1/etc/init.d /mnt/1/etc /mnt/1/usr/sbin/openvpn /mnt/1/etc/default/openvpn /mnt/1/etc/init.d/openvpn /mnt/1/etc/default
/etc/openvpn/client.conf¶
nalazi se na mrežnoj lokaciji
/mnt/1/etc/openvpn/client.conf
client dev tun proto udp remote officesa.sigma-com.net 1194 nobind ca /mnt/1/etc/openvpn/bring.out.ba.crt cert /mnt/1/etc/openvpn/rg.crt key /mnt/1/etc/openvpn/rg.key comp-lzo
/etc/default/openvpn¶
nalazi se na mrežnoj lokaciji
/mnt/1/etc/default/openvpn
CONFIG="/mnt/1/etc/openvpn/client.conf" OPTIONS="--config $CONFIG"
simbolički linkovi¶
S obzirom da se instaliralo na net destinaciju trebaju se
root@router-wan-rg-2:# mkdir -p /mnt/default root@router-wan-rg-2:# ln -s /mnt/1/etc/default/openvpn /etc/default/openvpn root@router-wan-rg-2:# ln -s /mnt/1/usr/sbin/openvpn /usr/sbin/openvpn
Reference¶