Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUT] Create your own PPTP VPN using Ubuntu Linux
#7
It loosk like this:

Code:
@64.87.33.57's password:
Last login: Sun Oct 23 16:06:05 2011 from 2.29.10.138
[root@server1 ~]#/etc/pptpd.conf
-bash: /etc/pptpd.conf: Permission denied
[root@server1 ~]#nano /etc/pptpd.conf
  GNU nano 1.3.12            File: /etc/pptpd.conf                    Modified


#       4. If you give a single localIP, that's ok - all local IPs will
#          be set to the given one. You MUST still give at least one
remote
#          IP for each simultaneous client.
#
# (Recommended)
#localip 192.168.0.1
#remoteip 192.168.0.234-238,192.168.0.245
# or
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245
localip 172.16.36.1
remoteip 172.16.36.2-254


However, I think I have fixed the problem using with IP tables issue:

Code:
[root@server1 ~]#iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  172.16.36.0/24       anywhere            to:74.11.44.57
SNAT       all  --  172.16.1.0/24        anywhere            to:74.11.44.19

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@server1 ~]#


Here is the confirguration for /etc/ppp/chap-secrets.

Code:
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
testvpn         pptpd   mypassword                 172.16.36.0/24
myusername     pptpd   mypassword                 172.16.1.1



I can now be able to connect to any sites using with random IP's like 74.11.44.57, 74.11.44.19, 74.11.44.3 and so on. It works fine, but my problem is when I tried to connect to a site called neobux using with random IP's, I cannot be able to connect it and it will only works if I use an IP of 74.11.44.57. It was working fine at the other day, but not today or yesterday. I'd find it strange, I'm not sure why and what the real trouble is.

Do you know why i can't connect to that site using with random IP's when there is no response while other sites are working fine? :S
Reply


Messages In This Thread
RE: [TUT] Create your own PPTP VPN using Ubuntu Linux - by chris0147 - 10-23-2011, 01:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get Ubuntu 11.04 >>Upgrade from Ubuntu 10.10 aminmusa 15 7,133 04-25-2011, 02:06 AM
Last Post: aminmusa
  [ubuntu v=9.10]Apache2 errors[/ubuntu] jfmherokiller 10 3,741 11-23-2010, 08:26 PM
Last Post: haphazard
  Linux Ubuntu 10.10 [Maverick Meerkat] cheeseburger 3 1,197 10-28-2010, 07:09 PM
Last Post: Reality
  Linux [Ubuntu Tweak] cheeseburger 7 1,838 10-26-2010, 06:44 AM
Last Post: Spagnum
  Tutorial: Installing Ubuntu/Basics of Ubuntu Canoris 16 9,293 05-31-2010, 05:31 PM
Last Post: Natha

Forum Jump:


Users browsing this thread: 2 Guest(s)