Cisco IPSec -OpenWRT/LEDE Router

1. Install OpenWRT/LEDE project on your router and add vpnc, vpnc-scripts and luci-proto-vpnc using System | Software menu item

2. Add new interface myVPN using Network | Interfaces and change protocol to VPNC.
Now you can setup VPN Server IP address, user name and password, group name and password.

Auth Group:                           (leave it empty)
Group Password: proxin2010

Important! In my case output interface is wan, because WAN port connected to outgoing modem!

and add myVPN interface to the lan firewall section of interface settings!


3. Switch now to the Network | Firewall and navigate to Custom Rules
You have to add forwarding rules for new myVPN interface

iptables -A forwarding_rule -o vpn-myVPN -j ACCEPT
iptables -A forwarding_rule -i vpn-myVPN -j ACCEPT
iptables -t nat -A postrouting_rule -o vpn-myVPN -j MASQUERADE

4. Add static routing to the subnetworks behind VPN connection as last step under Network | Static routes


Use the latest subnetwork:

myVPN Target IP: 10.8.0.0/255.255.0.0


此答案有用么?

 打印

建议阅读

Android-VPNCilla客户端使用教程

VPNCilla  为Cisco IPSec协议客户端,支持IKEv1/Xauth IKE/PSK协议连接。...

Cisco IPSec - OpenWRT/LEDE Router 2

Let's setup Cisco ipsec connection in command line.1. Install VPNC opkg update opkg install...

Android - Cisco IPsec VPN 设置指南

此模式仅极速套餐、独立套餐、企业套餐可用!1,首先,进入“设置-无线和网络-VPN”,我们在此处添加VPN连接。...

Cisco IPsec VPN - iOS 使用指南

此模式仅极速套餐、独立套餐、企业套餐可用!1,请到“设置”-“通用”-“VPN” 添加VPN连接方式。...

Shrew IPSec VPN Client - Windows Setup

Download from here, Be sure to choose Standard Edtion when setup. Start the Shrew Soft VPN...