Hello,
I am running OpenWrt 12.09 beta on a TP-Link WDR4300
My experimental setup is as following:
FreeeBSD server w/ VPN service on 10.0.0.2 <-> OpenWrt router on 10.0.0.1 <-> internet <-> road warrior.
The server is running a MPD5/racoon setup and when I try to connect it does not seem to work properly i.e. the connection times out therefore I thought it has something to do with my firewall setup on the router.
Simple services such as OpenVPN are no problem as all they need are just a single port forward to the server.
But I cannot get the VPN service to work with ports 1701, 500 and 4500 on UDP and am not sure if my firewall settings are correct, as most tutorials only focus on OpenWRT being the VPN server:
config redirect
option target DNAT
option src 'wan'
option dest 'lan'
option name 'GRE protocol passthrough'
option proto 'gre'
option dest_ip 10.0.0.2
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'udp'
option src_dport '500'
option dest_port '500'
option dest_ip 10.0.0.2
option name 'IPsec IKE'
# IPsec/NAT-T
config redirect
option 'target' 'DNAT'
option 'name' 'IPsec NAT-T'
option 'src' 'wan'
option dest lan
option 'proto' 'udp'
option src_dport 4500
option 'dest_port' '4500'
option dest_ip 10.0.0.2
config redirect
option 'target' 'DNAT'
option 'name' 'L2TP'
option 'src' 'wan'
option dest lan
option 'proto' 'udp'
option 'dest_port' '1701'
option dest_ip 10.0.0.2
option src_dport 1701
Maybe someone can shed some light on how to setup a proper passthrough to a server behind an OpenWrt router.
cheers,
axon