I'm trying to get VPN working from my home network to work. I have a linux gateway between my wireless router and the internet. I've tried every option I can find in iptables but I can't get it to forward gre packets BACK through the router.
By watching iptables' logs, I can see the gre packets being routed out correctly from my router ip (in the FORWARD chain):
Code:
IN=eth1 OUT=eth0 SRC=192.168.3.2 DST=67.xxx.xxx.xxx LEN=56 TOS=0x00 PREC=0x00 TTL=253 ID=8280 PROTO=47
But the return packet has a DST of my public ip address (in the INPUT chain):
Code:
IN=eth0 OUT= MAC=00:30:..... SRC=67.xxx.xxx.xxx DST=69.204.yyy.yyy LEN=61 TOS=0x00 PREC=0x00 TTL=44 ID=52130 DF PROTO=47
the packets aren't seen in the FORWARD chain, or in PREROUTING chain in the nat table. Is there a way to force these packets from INPUT to FORWARD? I've tried using the mangle table, but everything returns the unusable message "iptables: Unknown error 4294967295".
Anyone know what the problem is here? ICMP packets and all other traffic are routed back and forth just fine (using SNAT in the POSTROUTING chain). But GRE packets simply refuse to comply.
-dave