LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-17-2013, 12:17 PM   #1
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Rep: Reputation: 2
pptpd server


hello minds,
i installed pptpd server on centos
and i can connect to it from my windows laptop
the reason i made vpn server because i want to work on port is closed in my internet
the server is on softlayer
so is there any configuration to open the port on the pptpd server ???
thanks
 
Old 04-17-2013, 02:06 PM   #2
warez74
LQ Newbie
 
Registered: Apr 2013
Posts: 27

Rep: Reputation: 0
Hello, can you explain a little bit better your configuration and what you actually want?

Which port is closed where?

You said you were able to connect from your laptop, so what's the problem then?

Regards
 
Old 04-17-2013, 09:51 PM   #3
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
http://www.canyouseeme.org/
and i check the port i want to use it said
Error: I could not see your service on x.x.x.x on port (80)
Reason: Connection timed out


but if i use free vpn i see it is opened so what i should do more ?
thank you
 
Old 04-17-2013, 11:05 PM   #4
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
it is iptables issue
 
Old 04-18-2013, 07:13 AM   #5
warez74
LQ Newbie
 
Registered: Apr 2013
Posts: 27

Rep: Reputation: 0
So you want to open some ports? Which one?

I suggest you read the following thread:

http://www.linuxquestions.org/questi...es-4175457932/
 
Old 04-18-2013, 08:32 AM   #6
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
i make this rule but didnt work ,
i want to use port 81 through this vpn
any idea please??
thank you
 
Old 04-18-2013, 08:36 AM   #7
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
this is my iptables rules

PHP Code:
# Generated by iptables-save v1.4.7 on Wed Apr 17 23:44:22 2013
*filter
:INPUT ACCEPT [226:18889]
:
FORWARD ACCEPT [0:0]
:
OUTPUT ACCEPT [2619:1038700]
:
acctboth - [0:0]
-
A INPUT -j acctboth
-A INPUT -i bond1 -p tcp -m tcp --dport 1723 -j ACCEPT
-A INPUT -i bond1 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i ppp+ -o bond1 -j ACCEPT
-A FORWARD -i bond1 -o ppp+ -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -j acctboth
COMMIT
# Completed on Wed Apr 17 23:44:22 2013
# Generated by iptables-save v1.4.7 on Wed Apr 17 23:44:22 2013
*nat
:PREROUTING ACCEPT [5:260]
:
POSTROUTING ACCEPT [0:0]
:
OUTPUT ACCEPT [0:0]
-
A POSTROUTING -o bond1 -j MASQUERADE
COMMIT
# Completed on Wed Apr 17 23:44:22 2013 
 
Old 04-18-2013, 02:31 PM   #8
warez74
LQ Newbie
 
Registered: Apr 2013
Posts: 27

Rep: Reputation: 0
I still do not understand what you want to do, but anyway try allowing the port 81 on INPUT chain for all interfaces:

iptables -A INPUT -p tcp -m tcp --dport 81 -j ACCEPT
 
Old 04-18-2013, 02:58 PM   #9
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
simply,
i want to use program work on port 81 and 3460
in my internet these ports is closed so i tested on vpnpop.com it is solve
now i dont want to use free vpn and i have my own
but my own is closed to
clear now ??
thank you bro
 
Old 04-18-2013, 03:02 PM   #10
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
i used : iptables -A INPUT -p tcp -m tcp --dport 81 -j ACCEPT
and the same
http://www.canyouseeme.org/
give me
Error: I could not see your service on x.x.x.x on port (81)
Reason: Connection refused
 
Old 04-18-2013, 04:12 PM   #11
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
need help !!
 
Old 04-18-2013, 04:24 PM   #12
warez74
LQ Newbie
 
Registered: Apr 2013
Posts: 27

Rep: Reputation: 0
Quote:
i want to use program work on port 81 and 3460
Where that "program" is running? On the pptpd server or on your PC?

Does that program should be listening at port 81/3460?

BTW, you must explain the situation better if you want to get any help.

Last edited by warez74; 04-18-2013 at 04:25 PM.
 
Old 04-18-2013, 04:41 PM   #13
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
it is running on my pc
Does that program should be listening at port 81/3460?
yes
no thing else
 
Old 04-18-2013, 05:00 PM   #14
warez74
LQ Newbie
 
Registered: Apr 2013
Posts: 27

Rep: Reputation: 0
Ok, the things are much more clear now.

What you need is the so-called destination NAT iptables rule.

Before I provide you with that, please paste here the part of /etc/pptpd.conf where the localip and remoteip are specified.
 
Old 04-18-2013, 05:06 PM   #15
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
localip x.173.180.202
remoteip x.4.252.69
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTPD Server cheesewizz Linux - Newbie 1 11-23-2012 03:19 AM
PPTPD server on Linux andyflower Linux - Networking 4 10-07-2011 05:30 AM
PPTPD Server on Ubuntu newFreeBSD Linux - Server 1 05-17-2011 06:35 AM
issues with VPN pptpd server onorua Linux - Networking 1 08-25-2006 03:45 PM
pptpd server and pptp client on the same box - is this possible? acpi Linux - Networking 0 11-30-2005 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration