Toon posts:

Windows 2000 VPN door iptables-firewall

Pagina: 1
Acties:

Verwijderd

Topicstarter
Okay mensen, er zijn zoveel uiteenlopende topics over VPN,
dat ik het erop waag deze vraag rechtuit te stellen:

Ik maak gebruik van ADSL+iptables+NAT op locatie 1. Achter de iptables-firewall ligt een W2K-netwerk.

Op locatie 2 hangt een W2K-server via een kabelmodem aan het Internet.

***
Nu wil ik (sommigen voelen hem al aankomen...) een Windows 2000 VPN-verbinding opzetten tussen deze twee locaties. Een W2K-server op locatie 1 accepteert VPN-connecties.
Voor zover ik begrepen heb kan ik niet botweg poorten forwarden, maar moet ik gebruik maken van PPTP/IPsec.

Heeft iemand een linkje naar bruikbare informatie?

Verwijderd

Topicstarter
Ik geloof dat dit hier erg dicht in de buurt komt...

[topic=367599/1/25]

  • Predator
  • Registratie: Januari 2001
  • Laatst online: 16:57

Predator

Suffers from split brain

Bruikbare info

Stuk uit de bruikbare info
Zie onderaan, staat stukje over IPtables.

Everybody lies | BFD rocks ! | PC-specs


Verwijderd

Topicstarter
ben net

# make dep && make clean && etc.

aan't uitvoeren na het lezen van:

2.4.x-series kernels
Thanks to Brian Kuschak <bkuschak at yahoo.com> for providing a kernel patch for PPTP Masquerade under the 2.4 kernel!

2.4.12: [ HTTP Mirror 1 (USA: WA) | HTTP Mirror 2 (EU: NO) | HTTP Mirror 3 (AU) ]

2.4.15: [ HTTP Mirror 1 (USA: WA) | HTTP Mirror 2 (EU: NO) | HTTP Mirror 3 (AU) ]

2.4.17: [ HTTP Mirror 1 (USA: WA) | HTTP Mirror 2 (EU: NO) | HTTP Mirror 3 (AU) ]

Simply apply the patch, then enable PPTP masquerade in the IPFilter section when configuring your kernel.

No IPsec patch is available yet.

I am told that masquerading a single VPN client using IPtables is fairly simple to set up, and requires no special patches. This may work for both PPTP and IPsec.

The following is thanks to Joshua Eichorn <jeichorn@JoshuaEichorn.com>. I haven't tried it myself.

#!/bin/bash
# Load the NAT module (this pulls in all the others).
/sbin/modprobe iptable_nat

# In the NAT table (-t nat), Append a rule (-A) after routing
# (POSTROUTING) for all packets going out ppp0 (-o ppp0) which says to
# MASQUERADE the connection (-j MASQUERADE).
/usr/local/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

# Turn on IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

Server masquerade for PPTP also works with the default masquerade code. Add the following rules:

PPTP (1723/tcp and 47/ip):

/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 1723 -j DNAT --to 192.168.0.5
/sbin/iptables -t nat -A PREROUTING -i eth1 -p 47 -j DNAT --to 192.168.0.5

...where 192.168.0.5 is the local-network IP address of the PPTP server. I have not had any reports regarding IPsec server masquerade.