|
![]() |
#1 |
Registered User
Datum registracije: Mar 2012
Lokacija: Mostar
Postovi: 8
|
Tutorial za OpenVPN na routeru DD-WRT PC Engines
Imam dvije udaljene mreže na povezane sa dva routera (PC Engines) sa instaliranim DD_WRT jedan bi trebao konfigurirati kao PPTP server, a drugi kao kao PPTP client, i da se racunala iza njih mogu normalno pingati iz mreže. Ima li tko možda tutorial za ovu opciju sa detaljnim uputama. Hvala ! Zadnje izmijenjeno od: Nikky. 13.03.2012. u 13:24. |
![]() |
![]() |
![]() |
#2 |
Moderator
Datum registracije: Sep 2006
Lokacija: St
Postovi: 23,491
|
Mada nije presudno, mogao si navesti o kojem se hw radi (WRAP, ALIX). Jesi potražio / pogledao: http://www.dd-wrt.com/wiki/index.php..._Configuration http://www.dd-wrt.com/wiki/index.php...ith_two_DD-WRT http://www.dd-wrt.com/wiki/index.php/Tutorials http://www.tuvpn.com/en/tutorials/pptp-ddwrt#step-0 |
![]() |
![]() |
|
|
Oglas
|
|
![]() |
#3 |
Registered User
Datum registracije: Mar 2012
Lokacija: Mostar
Postovi: 8
|
ALIX Nasao sam u čemu je problem. Saki put kada DDNS promjene adresu na ADSL modemu od ISP-a , a sa obe je strane ADSL modem, ja izgubim VPN vezu. Provajder je u isto gradu i izgleda da mjenja IP istovremeno na oba modema i tada mi se desi prekid. Uredno je definiran DDNS host NO-IP na oba routera i sve radi do tog trenutka. Kako to riješiti. Pomoč žurrno mi je i hvala ! Sada cu uraditi po ovoj drugoj metodi možda ona pomogne http://www.dd-wrt.com/wiki/index.php...ith_two_DD-WRT A prva metoda je bila ova dolje This is a guide for creating a point to point VPN using the PPTP client and server, for people unable / bored etc... using the OpenVPN Client I've made this small code because DD-WRT does not allow you to save a route running on a VPN tunnel on PPTP (or at least i haven't found another way), so there is no route going back from the server network to the client network. Basically, the guide in the Wiki is fine for creating a VPN using the PPTP server and client parts of DD-WRT. I will not repeat those instructions, since they are fine. Just follow them to setup a PPTP VPN for the following locations. However, with this example only 1 site needs a PPTP server and the other PPTP client. So, lets say we have 2 locations , LocationA and LocationB Net details are as follows: LocationA Network: 192.168.1.0/24 Router IP: 192.168.1.254 LocationB Network: 192.168.2.0/24 Router IP: 192.168.2.254 You setup the PPTP Server on LocationA and the PPTP Client on LocationB However, while all pc's on B will be able to access any pc on A, the other is not possible (yet), because there isn't a route from A to go back to B. To do this, log on the CLI of DD-WRT, and type the following command: Code: nvram set routes='route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.254'nvram commit This saves the variable "routes" with a route-add entry However, we still need to apply this route AFTER the VPN Tunnel is up. To do this, we do the following: (Again to save) Code: nvram set rc_startup='nvram get routes > /tmp/routescat /tmp/pptpd/ip-up /tmp/routes > /tmp/pptpd/ip-tempmv /tmp/pptpd/ip-temp /tmp/pptpd/ip-upchmod 700 /tmp/pptpd/ip-up'nvram commit This basically runs on every startup, saves the route from the nvram variable to a file, and then adds that line to the last line of the ip-up script that runs when the PPTP server establishes the connection. Izvor: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=673426 Zadnje izmijenjeno od: Nikky. 13.03.2012. u 18:40. |
![]() |
![]() |
|
|
Oglas
|
|
![]() |
|
|