Opened 4 years ago
Closed 21 months ago
#1137 closed (worksforme)
Basic Setup - PPTP - Different IP for GW and PPTP server
| Reported by: | SaintReset | Owned by: | somebody |
|---|---|---|---|
| Keywords: | pptp basic setup | Cc: |
Description
First. As usual. Sorry for my english )
Subj.
In our lan we have different ip-addresses for local gateway (inside my sub-network) and pptp server.
For example:
my ip: 172.16.22.70/255.255.252.0
my gw: 172.16.20.2
pptp server: 77.*.80.240/24 (i have a static route to this subnet via my GW)
At this moment i'm using pptp client from "services - pptp". But this method not great for me... because i can't use pptp server with pptp client at one time. And many other problems like a... firewall working only for my intranet 172.16.0.0/12 but not for Internet
realise plz a different forms for GW ip and IP and name of VPN (look at pptp server's subnet) server in Basic setup section.
Change History (11)
comment:1 Changed 4 years ago by BrainSlayer
- Resolution set to invalid
- Status changed from new to closed
comment:2 Changed 4 years ago by SaintReset
- Resolution invalid deleted
- Status changed from closed to reopened
Ok. But, my router can`t obtain ip from dhcp-server in mode what you recommend. Simple DHCP-mode working perfect. Except one small moment... lease time - 1 hour. And every hour i have reconnect.
comment:3 Changed 4 years ago by BrainSlayer
- Resolution set to invalid
- Status changed from reopened to closed
thats not true. if the dhcp server wont give out a new lease it will not disconnect, if the dhcp server gives out a new ip you get a reconnect for sure, but this is not my fault then. but both works. with our without dhcp enabled the pptp server can be outside from the network mask. it will use the defined gateway as single route to the pptp server
comment:4 Changed 4 years ago by SaintReset
- Resolution invalid deleted
- Status changed from closed to reopened
Sorry, but it`s true. Every hour i "receive" same ip. And pptp session really reconnect every 60 minutes. But, this situation can be fixed with static ip/gw/dns addreses.
dhcp server "inside" network mask.
But, lets talk about first question. If its possible. In wan connection type - pptp make plz fields like this:
WAN IP Address ... Subnet Mask ... Gateway ... Static DNS 1 ... Static DNS 2 ... IP/name VPN server ...
comment:5 Changed 4 years ago by BrainSlayer
the problem is the following. if the dhcp server does not return any change, dd-wrt will ignore this new dhcp lease and nothing happens. (i tested this already many times with our pptp server and dhcp) so there could be just 2 reasons for your behaviour
- your provider gives out a new ip, netmask, gateway or domain name
- your provider disconnected pptp after one hour
dd-wrt does ignore a unchanged lease silently (not just for pptp, but in general)
and this is a problem i'm more interested in. i can implement this gateway for sure, but the real problem will be just hidden then
comment:6 follow-up: ↓ 8 Changed 4 years ago by BrainSlayer
- Resolution set to fixed
- Status changed from reopened to closed
comment:7 Changed 4 years ago by SaintReset
Ok. Thnks alot. I can give you any statistic information or telnet/ssh acces to my home router. Because this connection type is more then typical for ISP in countries like a Russia/Ukraine? (yep, some developers call this connection method - 'russian pptp').
But...
- Provider gives out the same ip, netmask, gateway and domain name (name of lan segment like a sigma.isp or nu.isp).
- Noup.
comment:8 in reply to: ↑ 6 Changed 4 years ago by phuzi0n
Replying to BrainSlayer: "dd-wrt does ignore a unchanged lease silently (not just for pptp, but in general)"
That's not entirely true, the firewall blocks DHCP renewals that come from outside the current WAN subnet which then causes a release+request and the interface goes down+up. http://svn.dd-wrt.com:8000/dd-wrt/ticket/973
comment:9 Changed 4 years ago by SaintReset
- Resolution fixed deleted
- Status changed from closed to reopened
comment:10 Changed 4 years ago by SaintReset
topics with the same problems - pptp - http://www.dd-wrt.com/phpBB2/viewtopic.php?t=44649 dhcp - http://www.dd-wrt.com/phpBB2/viewtopic.php?t=36279
comment:11 Changed 21 months ago by Sash
- Resolution set to worksforme
- Status changed from reopened to closed

the standard "wan" pptp client does work with it too since a long time different gw and ip (especially if ip is outside the current network range) is supported. dhcp is supported as well (router gets ip with dhcp and connects then with pptp)