Hi,
I have downloaded and installed the openwrt-wrt54gs-2.6-squashfs image from downloads.openwrt.org.
This is working great so far, although I am having a little trouble with the default firewall rules and an IPSEC vpn to the office.
The ipsec tunnel is established and the two remote networks can communicate after executing
/etc/init.d/firewall stop
I have tried adding numerous combinations of rules to /etc/firewall.user, all of which I will not post here. My last ( futile ) attempt was this:
### VPN
iptables -A INPUT -s x.x.x.x -j ACCEPT
iptables -A OUTPUT -d x.x.x.x -j ACCEPT
iptables -A FORWARD -s 192.168.0.0/24 -d 172.16.1.0/24 -j ACCEPT
iptables -A FORWARD -s 172.16.1.0/24 -d 192.168.0.0/24 -j ACCEPT
The rules are being executed, as I can see them in the output of iptables -L -n, and the INPUT rule is effective as I can connect to all open ports on my router from the VPN gateway ( x.x.x.x ). I have come to the conclusion that I am missing something obvious.
Shorewall has made me lazy... but that's another subject.
I will keep banging away at this after I get home, however any suggestions would be greatly appreciated.
[EDIT] I am using openwrt as the ipsec gateway, connecting as follows
192.168.0.0/24 <----> ( office router ) ---- internet ---- ( openwrt ) <----> 172.16.1.0/24
[EDIT] OpenWRT's internet connection is established via PPPOE, so the real WAN interface is ppp0.
(Last edited by centyx on 6 Jul 2007, 11:29)