Gre tunnel Linux Cisco

Posted by mezgani on Server Fault See other posts from Server Fault or by mezgani
Published on 2010-04-22T23:36:33Z Indexed on 2010/04/22 23:43 UTC
Read the original article Hit count: 432

Filed under:
|
|
|

I've created a GRE tunnel between LAN A and LAN B. LAN A is behind a router, and LAN B is behind a Linux box and this box has a pppoe interface. When i do tcpdump on Linux box i see that the traffic is routerd to Linux box (tunnel end), so my need is routing the tunnel traffic to internet. I've added these rules to my iptables script, and i stay unable to connect to internet from LAN A Permitting Linux to act as router (necessary to forward packets)


echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -p 47 -j ACCEPT
iptables -A FORWARD -i ppp0 -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o gre0 -j MASEQUARADE
What i've forgot to set in this case?

© Server Fault or respective owner

Related posts about gre

Related posts about cisco