Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RETE] Vtun come si usa?
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)
View previous topic :: View next topic  
Author Message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Wed May 11, 2005 1:18 pm    Post subject: [RETE] Vtun come si usa? Reply with quote

Come da topico :) ho emerso ma non ci capisco una cippa lippa e gli howto americani mi risultano alquanto criptici avete un esempio molto semplice?
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Wed May 11, 2005 2:00 pm    Post subject: Reply with quote

il sito mi sembra molto ben fatto...
ci sono esempi e anche mailing-lists.

Non l'ho mai usato perche' openvpn mi ha sempre soddisfatto.
C'e' un motivo particolare per cui prediligere vtun?

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Wed May 11, 2005 3:59 pm    Post subject: Reply with quote

si openvpn nn funziona bene :) nn so perche mi rifiuta alcuni pacchetti e non è un problema di rete
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Wed May 11, 2005 8:53 pm    Post subject: Reply with quote

questa e' nuova :)

lo usi in TAP mode o TUN?
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Thu May 12, 2005 8:43 am    Post subject: Reply with quote

entrambi non andavano :) ho risolto con vtun:
Code:
# cat vtun/vtun.conf
options {
  port           1001;
  ifconfig      /sbin/ifconfig;
}
default {
        type tun;
        proto tcp;
}
marbella {
        speed 192:192;
        pass ****;
        encrypt yes;
        keepalive yes;
        persist yes;
        compress lzo:5;
        stat yes;
        up {
                ifconfig "%% 10.10.1.2 pointopoint 10.10.1.1";
        };
        down {
                ifconfig "%% down";
        };
}

Solo vorrei poter lanciare dei comandi all'interno di questo conf ma non so come fare
i comandi sono questi:
Code:
                ip route add default via 192.168.255.1 table delega2
                ip rule add from 192.168.255.2 table delega2

e dall'alttro lato:
Code:
                iptables -t nat -A PREROUTING -d 62.152.108.69 -j DNAT --to 10.10.1.2
                iptables -t nat -A POSTROUTING -s 10.10.1.2 -j SNAT --to 62.152.108.69


Ma non capisco come inserirli o meglio li inserisco come dice il manuale ma non fuzionano
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Thu May 12, 2005 9:15 am    Post subject: Reply with quote

e' molto strano che non vada openvpn... cmq tornando IT..

invece di fare route....
prova a fare echo "ciao" > tmp/funziona

per vedere se effettivamente lancia lo script!
oppure redireziona l'output e lo stderr su un file...

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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