hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Help! I can't connect to a site when using PPTP IP'S
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Help! I can't connect to a site when using PPTP IP'S

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-23-2011, 04:30 PM
mark103 mark103 is offline
WHT Addict
 
Join Date: Aug 2007
Posts: 146

Help! I can't connect to a site when using PPTP IP'S


Hi guys,

i need your urgent help, I have a problem connecting to a site through my VPS. I have got XEN VPS 128MB of ram and I'm using CentOS 64-bit OS. I have installed pptp on my vps and i can connect to any sites using with ip 74.11.44.57 without have any problems, but my trouble is when I use a different IP's something is like 74.11.44.19, 74.11.44.3 and so on. When I tried to connect on that site I use www.neobux.com, there are no response and I'm not really sure what the real trouble is. I can connect to that site using with an IP 74.11.44.57 without have any problems, but not for any other IP's that come with random numbers at the end.

Can you tell me why the site I tried to connect did not response?

Any one can tell me why and what the problem is?

Reply With Quote


Sponsored Links
  #2  
Old 10-23-2011, 08:09 PM
mikeA52 mikeA52 is offline
Newbie
 
Join Date: Sep 2011
Posts: 29
Quote:
Originally Posted by mark103 View Post
Hi guys,

i need your urgent help, I have a problem connecting to a site through my VPS. I have got XEN VPS 128MB of ram and I'm using CentOS 64-bit OS. I have installed pptp on my vps and i can connect to any sites using with ip 74.11.44.57 without have any problems, but my trouble is when I use a different IP's something is like 74.11.44.19, 74.11.44.3 and so on. When I tried to connect on that site I use www.neobux.com, there are no response and I'm not really sure what the real trouble is. I can connect to that site using with an IP 74.11.44.57 without have any problems, but not for any other IP's that come with random numbers at the end.

Can you tell me why the site I tried to connect did not response?

Any one can tell me why and what the problem is?
Well it looks like, you are trying to use IP addresses that are not bound to your VPS. Are those IPs that are not "connecting" actually allotted to you?

__________________
Mike - Area52Hosting
> Apache + Nginx - cPanel Shared WebHosting - Daily Offsite Backups
> Never Oversold, Cheap High Performance Shared WebHosting In Dallas, Texas
http://www.Area52Hosting.com/ - Since 2009

Reply With Quote
  #3  
Old 10-23-2011, 09:18 PM
mark103 mark103 is offline
WHT Addict
 
Join Date: Aug 2007
Posts: 146
Yes, I'm using one of those IP's each at a time.

When I connecting to a site using with IP 74.11.44.57, it works than any others it won't work.

I'd find it strange, because when I reinstall the OS and I tried to use the IP 74.11.44.19 instead of using than any other IP's then it works.

Something got to do with the firewall rules issue?

Reply With Quote
Sponsored Links
  #4  
Old 10-23-2011, 10:30 PM
nodesouth nodesouth is offline
Newbie
 
Join Date: Sep 2011
Location: Mobile, AL
Posts: 19
Sounds like it could be something to do with your forward rules. I remember having a similar issue on a w2k server several years ago, i could see everything on the network but not not the actual machine i was connected via pptp too.

Not sure if it helps but i have pasted below a iptables from one of my vpn servers i am on with now. It works for both pptpd and openvpn. Its complete apart from some random ports i open. If your on centos jut copy it to:

/etc/sysconfig/iptables

and then

service iptables restart


# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*nat
REROUTING ACCEPT [79:6173]
OSTROUTING ACCEPT [2:365]
:OUTPUT ACCEPT [2:365]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
*filter
:INPUT ACCEPT [0:0]
:INPUT ACCEPT [0:0]
-A INPUT -i tun0 -j ACCEPT
-A INPUT -i ppp0 -j ACCEPT
-A INPUT -p gre -j ACCEPT
:FORWARD ACCEPT [0:0]
-A FORWARD -i tun0 -j ACCEPT
-A FORWARD -i ppp0 -j ACCEPT
:OUTPUT ACCEPT [0:0]
-A OUTPUT -o tun0 -j ACCEPT
-A OUTPUT -o ppp0 -j ACCEPT
-A OUTPUT -p gre -j ACCEPT
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

Reply With Quote
  #5  
Old 10-24-2011, 09:44 AM
mark103 mark103 is offline
WHT Addict
 
Join Date: Aug 2007
Posts: 146
Thanks, I have pasted the iptables rules in /etc/sysconfig/iptables and I have restart, but then I get this:

Code:
[root@server1 ~]#service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules: iptables-restore v1.3.5: Unknown arg `-j'
Error occurred at line: 28
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
                                                           [FAILED]
[root@server1 ~]#

If I try with service iptables save, it will delete some rules.

Do you know what's wrong and how to fix it?

Reply With Quote
  #6  
Old 10-24-2011, 09:49 AM
nodesouth nodesouth is offline
Newbie
 
Join Date: Sep 2011
Location: Mobile, AL
Posts: 19
try commenting out the line before the final COMMIT

#-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

some machines i have had to do that

__________________
Paul Trippett - Node South LLC - Gulf Coast Web Hosting
cPanel, Shared / Reseller, Virtual Private Servers, Cloud Servers

Reply With Quote
  #7  
Old 10-24-2011, 10:00 AM
mark103 mark103 is offline
WHT Addict
 
Join Date: Aug 2007
Posts: 146
Thanks, but I still get the same.

Any idea?

Reply With Quote
  #8  
Old 10-24-2011, 10:11 AM
mark103 mark103 is offline
WHT Addict
 
Join Date: Aug 2007
Posts: 146
here's my configuration:

Code:
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*nat
:PREROUTING ACCEPT [79:6173]
:POSTROUTING ACCEPT [2:365]
:OUTPUT ACCEPT [2:365]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
*filter
:INPUT ACCEPT [0:0]
:INPUT ACCEPT [0:0]
-A INPUT -i tun0 -j ACCEPT
-A INPUT -i ppp0 -j ACCEPT
-A INPUT -p gre -j ACCEPT
:FORWARD ACCEPT [0:0]
-A FORWARD -i tun0 -j ACCEPT
-A FORWARD -i ppp0 -j ACCEPT
:OUTPUT ACCEPT [0:0]
-A OUTPUT -o tun0 -j ACCEPT
-A OUTPUT -o ppp0 -j ACCEPT
-A OUTPUT -p gre -j ACCEPT
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j
ACCEPT
#-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

Reply With Quote
  #9  
Old 10-24-2011, 10:13 AM
nodesouth nodesouth is offline
Newbie
 
Join Date: Sep 2011
Location: Mobile, AL
Posts: 19
the only thing i can see is

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j
ACCEPT

ACCEPT needs to be on the end of the line above -j ACCEPT

__________________
Paul Trippett - Node South LLC - Gulf Coast Web Hosting
cPanel, Shared / Reseller, Virtual Private Servers, Cloud Servers

Reply With Quote
  #10  
Old 10-24-2011, 10:41 AM
mark103 mark103 is offline
WHT Addict
 
Join Date: Aug 2007
Posts: 146
Oh sorry I have forgot to include the ACCEPT at the end of the line. However I have fixed the problem, when I try to connect to the site, there are no response while the server is up and running. The server did not blocked my IP'S.

Do you know why and the problem is?

Reply With Quote
  #11  
Old 10-24-2011, 10:50 AM
nodesouth nodesouth is offline
Newbie
 
Join Date: Sep 2011
Location: Mobile, AL
Posts: 19
ahhh i stripped out the allow line for the pptp by accident. Just need to open port 1723 in ip tables with the following line before the COMMIT at the bottom of the file and restart iptables

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1723 -j ACCEPT

__________________
Paul Trippett - Node South LLC - Gulf Coast Web Hosting
cPanel, Shared / Reseller, Virtual Private Servers, Cloud Servers

Reply With Quote
  #12  
Old 10-24-2011, 11:21 AM
mark103 mark103 is offline
WHT Addict
 
Join Date: Aug 2007
Posts: 146
Do I need to replace from this:

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT


to this?

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1723 -j ACCEPT

Reply With Quote
  #13  
Old 10-24-2011, 11:33 AM
nodesouth nodesouth is offline
Newbie
 
Join Date: Sep 2011
Location: Mobile, AL
Posts: 19
dont replace it, place the new one underneath. The forst one allows you to ssh in to the server, and this new one allows you to pptp into the server.

__________________
Paul Trippett - Node South LLC - Gulf Coast Web Hosting
cPanel, Shared / Reseller, Virtual Private Servers, Cloud Servers

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to my site or my web host's site manmole Web Hosting 27 02-28-2011 02:36 AM
Can't connect to site/host? jnm224 Web Hosting 13 01-17-2009 07:15 PM
Can't connect to my site via FTP on a Mac - help! emills01 Hosting Software and Control Panels 12 04-08-2006 03:40 AM
trying to connect to my FTP site gib65 Web Hosting 1 06-22-2005 08:55 PM
can you connect to this site? badr Web Design and Content 10 11-17-2004 12:53 AM

Related posts from TheWhir.com
Title Type Date Posted
Equinix Expands AWS Direct Connect Availability to Seattle Data Centers Web Hosting News 2013-05-10 11:32:28
Data Center Firm CoreSite Enabling Cloud Hosting in NYC via AWS Direct Connect Web Hosting News 2012-08-14 11:15:36
AWS Direct Connect Expands to CoreSite, Equinix and Telecity Data Centers Web Hosting News 2012-01-11 10:27:21
Hexagrid Partners with Backbone Connect to Distribute Cloud Platform to UK Market Web Hosting News 2011-08-03 16:02:55
A new way to Connect with HostingCon 2011 Attendees Blog 2011-07-07 17:06:52


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?