Enable connection from host in LAN to VPN server through iptables.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

>From several days I am trying to enable connection from host in LAN to VPN
server through router with iptables (Gentoo distro). Unfortunately I am unable
to configure it correctly. Below is What I have in my iptables rules:

iptables -A FORWARD -d 195.246.237.249 -j LOG --log-prefix="VPN
"                             

iptables -A FORWARD -s 195.246.237.249 -j LOG --log-prefix="VPN "

iptables -A FORWARD -p gre -s 10.0.0.0/16 [http://10.0.0.0/16] -j ACCEPT
iptables -A FORWARD -p tcp -s 10.0.0.0/16 [http://10.0.0.0/16] --dport 1723 -j
ACCEPT
iptables -A FORWARD -p tcp --dport 1793 -j ACCEPT  
iptables -A FORWARD -p udp --dport 500 -j ACCEPT
iptables -A FORWARD -p udp --dport 1701 -j ACCEPT

Of course standard NAT routing rules are present.
What I did wrong?
Thank you in advance for any help or tips.

Best Regards
--
Piotr Pawlowski
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux