Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PPTP] Più server sulla stessa macchina, si potrà fare?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
spugna
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2004
Posts: 97

PostPosted: Tue Mar 07, 2006 4:46 pm    Post subject: [PPTP] Più server sulla stessa macchina, si potrà fare? Reply with quote

Supponendo di avere una macchina con più schede di rete, diciamo 4 (quindi eth0, eth1, eth2 pubbliche e eth3 privata) e di dover installare poptop che rilascia indirizzi ip diversi IYHO si può fare?

avendo per dire

Code:

eth0: 192.168.0.1/24
eth1: 192.168.1.1/24
eth2: 192.168.2.1/24

eth3: 192.168.254.1/24


e avendo spulciato con pptpd --help

Code:

pptpd v1.2.3
Usage: pptpd [options], where options are:

 [-b] [--bcrelay if]       Use broadcast relay for broadcasts comming from.
                           the specified interface (default is eth1).
 [-c] [--conf file]        Specifies the config file to read default
                           settings from (default is /etc/pptpd.conf).
 [-d] [--debug]            Turns on debugging (to syslog).
 [-e] [--ppp file]         Use alternate pppd binary, default /usr/sbin/pppd.
 [-f] [--fg]               Run in foreground.
 [-h] [--help]             Displays this help message.
 [-i] [--noipparam]        Suppress the passing of the client's IP address
                           to PPP, which is done by default otherwise.
 [-l] [--listen x.x.x.x]   Specifies IP of local interface to listen to.
 [-o] [--option file]      Specifies the PPP options file to use
                           (default is /etc/ppp/options).
 [-p] [--pidfile file]     Specifies the file to write the process ID to
                           (default is /var/run/pptpd.pid).
 [-s] [--speed baud]       Specifies the baud speed for the PPP daemon
                           (default is 115200).
 [-t] [--stimeout seconds] Specifies the timeout for the first packet. This is a DOS protection
                           (default is 10).
 [-v] [--version]          Displays the pptpd version number.
 [-w] [--logwtmp]          Update wtmp as users login.


Logs and debugging go to syslog as DAEMON.

Command line options will override any default settings and any settings
specified in the config file (default config file: /etc/pptpd.conf).


potrei modificare lo script di init in modo che lanci più istanze di pptpd diverse con diversi file di opzioni tipo
Code:

 /usr/sbin/pptpd -c /etc/pptpd.conf.eth0 -l 192.168.0.1
 /usr/sbin/pptpd -c /etc/pptpd.conf.eth1 -l 192.168.1.1
 /usr/sbin/pptpd -c /etc/pptpd.conf.eth2 -l 192.168.2.1


Che dite, me la posso cavare?
_________________
Don't think, drink your wine, watch the fire burn... his problems not mine...
Just be that model citizen.
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Thu Mar 09, 2006 12:56 pm    Post subject: Reply with quote

scusami ma non potresti usare iptables :?: :?:
Back to top
View user's profile Send private message
spugna
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2004
Posts: 97

PostPosted: Thu Mar 09, 2006 1:57 pm    Post subject: Reply with quote

Cosa c'entra iptables?
io ho bisogno di installare 3 server pptp che hanno lease diverso e che lavorano su 3 reti diverse ...
_________________
Don't think, drink your wine, watch the fire burn... his problems not mine...
Just be that model citizen.
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Fri Mar 10, 2006 1:42 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.

Messa così mi sembra più una discussione quindi la sposterei... :wink:
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
Dr.Dran
l33t
l33t


Joined: 08 Oct 2004
Posts: 766
Location: Imola - Italy

PostPosted: Sat Mar 11, 2006 11:11 am    Post subject: Reply with quote

Domanda schema:
Hai provato a guardare sul sito il file di configurazione?
Ho notato che esiste un TAG per abilitare il broadcasting sulle singole interfaccie, quindi puoi configurare le tre interfaccie con il comando "bcrelay" e poi configurare con il TAG localip e remoteip gli indirizzi sulle interfaccie locali e remote... comunque dopo che hai realizato una cosa simile non escluderei il discorso di rota per definire delle politiche precise di filtraggio anche con iptables...

Ciao spero di esserti stato d'aiuto :D
_________________
:: [Dr.Dran] Details ::
- Linux User # 286282
- IT FreeLance Consultant
- President of ImoLUG [Imola & Faenza Linux User Group]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum