* IPtables redirect rules
@ 2003-05-12 20:24 Linux
2003-05-12 21:05 ` Rob Sterenborg
0 siblings, 1 reply; 2+ messages in thread
From: Linux @ 2003-05-12 20:24 UTC (permalink / raw)
To: Netfilter/IPTables Mailing List
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
Hi,
I have a Linux Firewall (MY GATEWAY) doing NAT for a LAN with the IP 192.168.0.x and I have a Windows 2000 Server as a file server. I would like to do a VPN, but with Win2K. So I want to redirect all VPN requests from the linux machine to my Win2K server. How can I do that?
Thanks,
Charles
[-- Attachment #2: Type: text/html, Size: 855 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: IPtables redirect rules
2003-05-12 20:24 IPtables redirect rules Linux
@ 2003-05-12 21:05 ` Rob Sterenborg
0 siblings, 0 replies; 2+ messages in thread
From: Rob Sterenborg @ 2003-05-12 21:05 UTC (permalink / raw)
To: 'Netfilter/IPTables Mailing List'
> VPN, but with Win2K. So I want to redirect all VPN
> requests from the linux machine to my Win2K server.
> How can I do that?
Patch the kernel with the latest patch-o-matic. You need the pptp
conntrack and nat modules.
Configure the kernel so that you get the pptp conntrack and nat modules,
then compile and install it.
Make sure you load the modules when you rebooted and everything goes
well.
The iptables rules :
iptables -P FORWARD DROP
iptables -A FORWARD -i <if_inet> -d <pptp_svr_ip> \
-m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i <if_inet> -d <pptp_svr_ip> \
-p gre -j ACCEPT
iptables -A FORWARD -i <if_inet> -d <pptp_svr_ip> \
-p tcp --dport 1723 -j ACCEPT
iptables -t nat -A PREROUTING -i <if_inet> -p gre \
-j DNAT --to-destination <pptp_svr_ip>
iptables -t nat-A PREROUTING -i <if_inet> -p tcp \
--dport 1723 -j DNAT --to-destination <pptp_svr_ip>
But I have to tell you (and I read it from other people too) : I got
this working in the past (with kernel 2.4.17), but somehow I can't get
it working anymore. So I installed the poptop server which works fine.
Gr,
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-12 21:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-12 20:24 IPtables redirect rules Linux
2003-05-12 21:05 ` Rob Sterenborg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.