It loosk like this:
However, I think I have fixed the problem using with IP tables issue:
Here is the confirguration for /etc/ppp/chap-secrets.
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
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