WAR_CH|LD
03-02-2004, 09:52 PM
I have this configuration
W2k VPN server ----- Iptables ------ Road Warrior
I have hte Raod warrior, VPNing in no problems, 1723 and protocol 47 are forwarded as necessary. This works great, I have also loaded the gre_ip module.
now, if I am on the network that houses the VPN server, I can no longer VPN to any other vpn servers (through that firewall and onto the net, through someone elses firewall and vpn server). The packets from the internal network for some reasons are getting forwarded back to the W2k VPN server.
#PPTP Forwarding in w2k
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 1723 -j allowed
$IPTABLES -t nat -A PREROUTING -p tcp -i $INET_IFACE --dport 1723 -j DNAT --to $WVPN_SRV:1723
#$IPTABLES -t nat -A PREROUTING -p tcp --dport 1723 -j DNAT --to $WVPN_SRV:1723
$IPTABLES -A FORWARD -p TCP -i $INET_IFACE -d $WVPN_SRV --dport 1723 -j accept_log1
$IPTABLES -A INPUT -p 47 -s 0/0 -j allowed
$IPTABLES -t nat -A PREROUTING -p 47 -i $INET_IFACE -j DNAT --to $WVPN_SRV
#$IPTABLES -t nat -A PREROUTING -p 47 -j DNAT --to $WVPN_SRV
$IPTABLES -A FORWARD -p 47 -i $INET_IFACE -d $WVPN_SRV -j accept_log1
I then added the -i $INET_IFACE to the routing chain's, but now I get NO response and do not know at all what is happpening to the packets... anyone got any questions or ideas?
In the end I need to be able to forward the VPN from the inet to that win2k server and then be able to connect to others, in other locations and for some reason.. this ain't happening.
W2k VPN server ----- Iptables ------ Road Warrior
I have hte Raod warrior, VPNing in no problems, 1723 and protocol 47 are forwarded as necessary. This works great, I have also loaded the gre_ip module.
now, if I am on the network that houses the VPN server, I can no longer VPN to any other vpn servers (through that firewall and onto the net, through someone elses firewall and vpn server). The packets from the internal network for some reasons are getting forwarded back to the W2k VPN server.
#PPTP Forwarding in w2k
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 1723 -j allowed
$IPTABLES -t nat -A PREROUTING -p tcp -i $INET_IFACE --dport 1723 -j DNAT --to $WVPN_SRV:1723
#$IPTABLES -t nat -A PREROUTING -p tcp --dport 1723 -j DNAT --to $WVPN_SRV:1723
$IPTABLES -A FORWARD -p TCP -i $INET_IFACE -d $WVPN_SRV --dport 1723 -j accept_log1
$IPTABLES -A INPUT -p 47 -s 0/0 -j allowed
$IPTABLES -t nat -A PREROUTING -p 47 -i $INET_IFACE -j DNAT --to $WVPN_SRV
#$IPTABLES -t nat -A PREROUTING -p 47 -j DNAT --to $WVPN_SRV
$IPTABLES -A FORWARD -p 47 -i $INET_IFACE -d $WVPN_SRV -j accept_log1
I then added the -i $INET_IFACE to the routing chain's, but now I get NO response and do not know at all what is happpening to the packets... anyone got any questions or ideas?
In the end I need to be able to forward the VPN from the inet to that win2k server and then be able to connect to others, in other locations and for some reason.. this ain't happening.