Koozali.org: home of the SME Server

Adressbereich bei PPTP vorgeben ???

Offline nobody

  • 9
  • +0/-0
Adressbereich bei PPTP vorgeben ???
« on: May 19, 2011, 10:40:13 AM »
Hallo miteinander,

ich habe einen SME 7.2 auf dem kein DHCP läuft. Dies macht ein Server2003.

Leider vergigt der SME bei der Einwahl über PPTP eine Adresse, die belegt ist.

Wie kann ich das ändern ? Ich brauche den Bereich 192.168.1.45-49

Habe dies (siehe unten) gefunden, leider kommt bei dem Befehl
Quote
/sbin/e-smith/expand-template /etc/pptp.conf
ein Fehler.
Er kann die Dateietc/pptp.conf nicht finden.

Da ich nicht Linux-bewandert bin, wäre eine genaue Beschreibung sehr nett.


Vielen Dank für Euere Bemühungen im voraus !





Quote
Howto Setup VPN to use specified IP addresses
1. Choose the IPs that you want.
2. Make the custom template fragments:
mkdir -p /etc/e-smith/templates-custom/etc/pptpd.conf
3. Create the template fragment needed:
touch /etc/e-smith/templates-custom/etc/pptpd.conf/remoteip
4. Edit the fragment with your favorite editor and insert these contents:
remoteip <ip-range>

ip-range will be the range of IPs that you want to use. It must be in this format:

10.0.0.230-240 would specify IPs 230 through 240 are usable

5. Save the file and expand the template:
/sbin/e-smith/expand-template /etc/pptp.conf
6. Restart the pptpd service:
service pptpd restart

Offline Frank VB

  • ***
  • 127
  • +0/-0
Re: Adressbereich bei PPTP vorgeben ???
« Reply #1 on: May 19, 2011, 12:12:23 PM »
Der Befehl soll
Quote
/sbin/e-smith/expand-template /etc/pptpd.conf
sein, nicht?

Offline nobody

  • 9
  • +0/-0
Re: Adressbereich bei PPTP vorgeben ???
« Reply #2 on: May 19, 2011, 12:21:19 PM »
Danke, danke, danke,


Prima 100 Punkte von 10 Möglichen.

Habe ich völlig überlesen. (Wenn man alles glaubt was da so steht).


Jetzt klappts auch.

Nochmals vielen Dank "Frank VB" !!!

Offline nobody

  • 9
  • +0/-0
Re: Adressbereich bei PPTP vorgeben ???
« Reply #3 on: May 19, 2011, 03:11:56 PM »
Okay,

gelöst !!!

Und hier nochmal für alle die richtige Version :

Quote
Adressbereich z.B 192.168.1.45 -192.168.1.49


1. Choose the IPs that you want.

2. Make the custom template fragments:
mkdir -p /etc/e-smith/templates-custom/etc/pptpd.conf

3. Create the template fragment needed:
touch /etc/e-smith/templates-custom/etc/pptpd.conf/remoteip

4. Edit the fragment with your favorite editor and insert these contents:
remoteip 192.168.1.45-49

5. Save the file and expand the template:
/sbin/e-smith/expand-template /etc/pptpd.conf

6. Restart the pptpd service:
service pptpd restart