LinuxQuestions.org
Visit Jeremy's Blog.
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 02-18-2012, 02:41 PM   #1
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Rep: Reputation: 0
How to Kill pptpd.conf


I screwed up my pptpd.conf settings in Nano. Someone told me to do this

Quote:
Assuming it doesn't involve pptp or any other peer-to-peer-type connections, and you didn't touch network settings (in the file /etc/network/interfaces), you can just kill pptpd process, then reset network configuration by /etc/init.d/networking restart.
How do I kill my pptpd.conf ?
 
Old 02-18-2012, 03:00 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi Pl3th0r4x,

pptpd.conf is a configuration file for pptp. What I think is you want to kill pptp services as per the suggestion given to you. You can kill pptp service by first finding its pid. You can do that by using following command:

Code:
ps -eaf | grep pptpd
And then running kill -9 against that pid.

By the way what is the issue. The above is just a suggestion to your query posted in this thread. What is the exact issue? What exactly are you trying to do?
 
1 members found this post helpful.
Old 02-18-2012, 08:10 PM   #3
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
Thank you my man. I am started a topic on it here I cannot seem to fix my other Internet connection because of some settings I changed and accidentally saved in the pptpd.conf while setting up an anonymous network for browsing. I would really like to get it reinstalled fresh so I can get on with working on the VPN.
 
Old 02-19-2012, 06:27 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

You're welcome.

Which tut you were referring to? Paste the link here. Make a copy or your existing pptpd.conf file and then refer this link to setup your pptp vpn connection: http://www.youtube.com/watch?v=YUgSpKFhuqg
 
1 members found this post helpful.
Old 02-19-2012, 12:54 PM   #5
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
Code:
root      1898     1  0 09:48 ?        00:00:00 /usr/sbin/pptpd
kbj       3024  2997  0 10:03 pts/1    00:00:00 grep --color=auto pptpd
which one is the pid?

The forum with the tut is not even up anymore it has been down for 3 days now. I dont whats going on. I messaged the owner that his tut wasnt working. He messaged me back and he said he was really busy with work. I asked him if he could help me just reset the pptpd.conf and now the forum is down..

I posted link in my post above with the part that I stopped at of the tut.
 
Old 02-19-2012, 01:50 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Code:
root      1898     1  0 09:48 ?        00:00:00 /usr/sbin/pptpd
1898 is the pid.
 
Old 02-19-2012, 03:10 PM   #7
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
nope no Internet connection. Nothing changed

Last edited by Pl3th0r4x; 02-19-2012 at 03:35 PM.
 
Old 02-19-2012, 03:15 PM   #8
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

After killing the pid did you try the method mentioned in youtube link which I posted in earlier post? If you tried and that didn't work then let me know the following:

1. How you connect to the internet.
2. How is your machine's network setup initially.
3. What are the changes that you made apart from editing pptpd.conf.
 
1 members found this post helpful.
Old 02-19-2012, 04:24 PM   #9
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
K, first let me say, I appreciate you taking the time to work with me on this, thank you.

Secondly, he doesn't show what the password he entered is. The Vpn connection failed. I have this Vpn account http://real-vpn.com/ its closed right now cos everyone likes it, but it also didnt work for me.

My log in details are

Your opened port : 8133 (Usefull for P2P)

Reminder: P2P is only allowed on the Netherlands server !
Configuration files are on the website main page.

I am in USA and Idk what happen it didnt work.

Also you wanted me to post my pptpd.conf log

Code:
# TAG: stimeout
#       Specifies timeout (in seconds) on starting ctrl connection
#
# stimeout 10

# TAG: noipparam
#       Suppress the passing of the client's IP address to PPP, which is
#       done by default otherwise.
#
#noipparam

# TAG: logwtmp
#       Use wtmp(5) to record client connections and disconnections.
#
logwtmp

# TAG: bcrelay <if>
#       Turns on broadcast relay to clients from interface <if>
#
#bcrelay eth1

# TAG: localip
# TAG: remoteip
#       Specifies the local and remote IP address ranges.
#
#       Any addresses work as long as the local machine takes care of the
#       routing.  But if you want to use MS-Windows networking, you should
#       use IP addresses out of the LAN address space and use the proxyarp
#       option in the pppd options file, or run bcrelay.
#
#       You can specify single IP addresses seperated by commas or you can
#       specify ranges, or both. For example:
#
#               192.168.0.234,192.168.0.245-249,192.168.0.254
#
#       IMPORTANT RESTRICTIONS:
#
#       1. No spaces are permitted between commas or within addresses.
#
#       2. If you give more IP addresses than MAX_CONNECTIONS, it will
#          start at the beginning of the list and go until it gets
#          MAX_CONNECTIONS IPs. Others will be ignored.
#
#       3. No shortcuts in ranges! ie. 234-8 does not mean 234 to 238,
#          you must type 234-238 if you mean this.
#
#       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 xxxxxxxxxxxxx
# or
#localip 192.168.101.1
#remoteip xxxxxxxxxxxxx
I am using a wireless connection. I only changed the IP addressed that are x'd out at the end of the pptpd.conf log. I dont think I changed the other IPs but it is possible I may have changed it, but that is it.
 
Old 02-19-2012, 05:37 PM   #10
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

You're welcome.

I would like to mention that setting up a VPN connection is something different than getting on the internet. However, to setup a VPN connection you should either have access to internet (so that you can connect to the VPN gateway on the internet) or you should be part of local network that is providing access to some of the resources via VPN.

Let me explain:

1. I have a system which is part of my office network (Remote location).
2. I have a system which is part of my home network.

Now if I want to access my office network. I have to make my home computer part of that network. Right? In that case what I will do is I will setup a VPN connection. Authenticate to it and become part of my office network. Now I will be able to access resources which are there in my office network.

Things that we need to figure out first:

1. Do you have connectivity to internet as of now?
2. Are you able to communicate to the IP of the VPN gateway server which you are trying to connect?
3. In the video it does not give you the password because that is just an example. His gateway server IP will not be the same as you are trying to to access. So we need to find out the IP of the VPN gateway server.
4. This is the quote from your other thread:

Quote:
stansmith, using my pptpd server, with the password “mypassword”, that can connect from any IP address. The “*” is a wildcard, meaning I can use any IP
So I am assuming this is your username and password to authenticate to that VPN gateway server. Is that correct? If not then you have to find out the username, password that you will use to authenticate and the gateway server IP address.

VPN connectivity is not possible unless you have either got internet connectivity or your VPN gateway server is part of your local network (which I doubt be the case)
 
1 members found this post helpful.
Old 02-19-2012, 06:52 PM   #11
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
Wow who would have thought I would have come across PID in my book just after I needed you to explain it to me. Process Identification.

*Edit*

Yes I have Internet it is through my roommates wireless account they are letting me borrow until I can fix my own again. I have used VPN's with Windows so I understand what and how they work. On Windows, though you just sign up with an email address, and sign on a program. In Linux you need to change some of the settings, and it seems they are never the same as someone elses.

The example with Stan Smith was from the tutorial I was following. He wasnt clear with his example so I decided to wait until he was available to answer some questions. In the mean time my Internet stopped working and his site is down.

I have an account with that link I showed you at http://real-vpn.com. Someone was trying to help me set it up on another site, but they lived in Mexico and I live in California so we were not able to communicate very well. He tried really hard though.

http://img851.imageshack.us/img851/2...nsettingsn.png

He sent me this screen shot of his set up and gave me the details, but still it did not work.

I gave you the log in details http://free-vpn.com sent me. I just left out the password. I have an account there. The issue I seem to have is the ports are not set up correctly. You see I have Internet connection , I set up the VPN, the small golden locket appears at the top, but then I cannot connect to the Internet.

For the settings I go to "Advanced", and do exactly as the same as the tut you showed me does, but this does not connect my VPN.

The first thing I need to do is fix my current Internet though. My roommates Internet is weak, that is why I need to get mine back before I go crazy... well, more crazy than I already am.x)

Last edited by Pl3th0r4x; 02-19-2012 at 07:02 PM.
 
Old 02-20-2012, 01:32 PM   #12
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Alright.

So let us first fix the internet connectivity issue. From your other post I can read that you have got Verizon FiOS connection which is a broadband connection. Right?

I am assuming that you were using a wired connection before this incident (after this incident you are sharing your roommates wireless connection). Am I right? Or you were using wireless broadband router to provide broadband connection over wireless?

If you were using wired connection before what do you get now when you get connect ethernet cable to the system? What is the output that you get for:

Code:
ifconfig
after restarting your network?
 
Old 02-20-2012, 02:11 PM   #13
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
This is ifconfig with my roommates wireless

Code:
eth0      Link encap:Ethernet  HWaddr b8:70:f4:73:9e:00  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:44 

lo        Link encap:Local Loopback  
          inet addr:192.168.1.4  Mask:255.255.255.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:65 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4681 (4.6 KB)  TX bytes:4681 (4.6 KB)

wlan0     Link encap:Ethernet  HWaddr b0:48:7a:96:d4:8d  
          inet addr:192.168.2.6  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::b248:7aff:fe96:d48d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14653 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9129 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9916668 (9.9 MB)  TX bytes:1981719 (1.9 MB)
And this is the ifconfig with my wireless, (it is on a laptop, wireless card, yes to a modem)

Code:
eth0      Link encap:Ethernet  HWaddr b8:70:f4:73:9e:00  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:44 

lo        Link encap:Local Loopback  
          inet addr:192.168.1.4  Mask:255.255.255.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:78 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5667 (5.6 KB)  TX bytes:5667 (5.6 KB)

wlan0     Link encap:Ethernet  HWaddr b0:48:7a:96:d4:8d  
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::b248:7aff:fe96:d48d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14788 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9247 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9946846 (9.9 MB)  TX bytes:2005672 (2.0 MB)
They are exactly the same except my roommates inet address is 192,168.1.6 and mine is 192.186.1.7 and under lo their Rx bytes: 4681 (4.6 KB) TX bytes:4681 (4.6 KB) and mine are: RX bytes:5667 (5.6 KB) TX bytes:5667 (5.6 KB)
 
Old 02-20-2012, 03:56 PM   #14
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Type the output of the following command:

Code:
sudo route
1. When you are connected to your room-mates wifi network.

2. When you are connected to your wifi network.

In the output you will find something that says default. This is default gateway. Try to ping this IP when:

1. When you are connected to your room-mates wifi network.

2. When you are connected to your wifi network.

Share the output in this thread.
 
1 members found this post helpful.
Old 02-20-2012, 04:23 PM   #15
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
sudo route:

my roommates
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         router.belkin   0.0.0.0         UG    0      0        0 wlan0
default         192.168.1.1     0.0.0.0         UG    100    0        0 lo
link-local      *               255.255.0.0     U     1000   0        0 wlan0
192.168.2.0     *               255.255.255.0   U     2      0        0 wlan0
Mine
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
default         192.168.1.1     0.0.0.0         UG    100    0        0 lo
link-local      *               255.255.0.0     U     1000   0        0 wlan0
192.168.1.0     *               255.255.255.0   U     2      0        0 wlan0
ping test roommates http://www.pingtest.net/result/57317024.png


This is the ping test to the default IP they are both the same and my wireless has zero connection service.
Code:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=0.068 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=0.057 ms
64 bytes from 192.168.1.1: icmp_req=3 ttl=64 time=0.062 ms
64 bytes from 192.168.1.1: icmp_req=4 ttl=64 time=0.061 ms
64 bytes from 192.168.1.1: icmp_req=5 ttl=64 time=0.072 ms
64 bytes from 192.168.1.1: icmp_req=6 ttl=64 time=0.071 ms
64 bytes from 192.168.1.1: icmp_req=7 ttl=64 time=0.060 ms
64 bytes from 192.168.1.1: icmp_req=8 ttl=64 time=0.062 ms
64 bytes from 192.168.1.1: icmp_req=9 ttl=64 time=0.060 ms
64 bytes from 192.168.1.1: icmp_req=10 ttl=64 time=0.059 ms
64 bytes from 192.168.1.1: icmp_req=11 ttl=64 time=0.073 ms
64 bytes from 192.168.1.1: icmp_req=12 ttl=64 time=0.059 ms
64 bytes from 192.168.1.1: icmp_req=13 ttl=64 time=0.058 ms
64 bytes from 192.168.1.1: icmp_req=14 ttl=64 time=0.074 ms
64 bytes from 192.168.1.1: icmp_req=15 ttl=64 time=0.075 ms
64 bytes from 192.168.1.1: icmp_req=16 ttl=64 time=0.060 ms
64 bytes from 192.168.1.1: icmp_req=17 ttl=64 time=0.074 ms
64 bytes from 192.168.1.1: icmp_req=18 ttl=64 time=0.058 ms
64 bytes from 192.168.1.1: icmp_req=19 ttl=64 time=0.078 ms
64 bytes from 192.168.1.1: icmp_req=20 ttl=64 time=0.060 ms
64 bytes from 192.168.1.1: icmp_req=21 ttl=64 time=0.075 ms
64 bytes from 192.168.1.1: icmp_req=22 ttl=64 time=0.063 ms
64 bytes from 192.168.1.1: icmp_req=23 ttl=64 time=0.076 ms
64 bytes from 192.168.1.1: icmp_req=24 ttl=64 time=0.074 ms
64 bytes from 192.168.1.1: icmp_req=25 ttl=64 time=0.073 ms
64 bytes from 192.168.1.1: icmp_req=26 ttl=64 time=0.059 ms
64 bytes from 192.168.1.1: icmp_req=27 ttl=64 time=0.072 ms
64 bytes from 192.168.1.1: icmp_req=28 ttl=64 time=0.063 ms
64 bytes from 192.168.1.1: icmp_req=29 ttl=64 time=0.062 ms
64 bytes from 192.168.1.1: icmp_req=30 ttl=64 time=0.059 ms
64 bytes from 192.168.1.1: icmp_req=31 ttl=64 time=0.077 ms
64 bytes from 192.168.1.1: icmp_req=32 ttl=64 time=0.061 ms
64 bytes from 192.168.1.1: icmp_req=33 ttl=64 time=0.069 ms
64 bytes from 192.168.1.1: icmp_req=34 ttl=64 time=0.072 ms
64 bytes from 192.168.1.1: icmp_req=35 ttl=64 time=0.060 ms
64 bytes from 192.168.1.1: icmp_req=36 ttl=64 time=0.061 ms
64 bytes from 192.168.1.1: icmp_req=37 ttl=64 time=0.062 ms
64 bytes from 192.168.1.1: icmp_req=38 ttl=64 time=0.062 ms
64 bytes from 192.168.1.1: icmp_req=39 ttl=64 time=0.061 ms
64 bytes from 192.168.1.1: icmp_req=40 ttl=64 time=0.061 ms
64 bytes from 192.168.1.1: icmp_req=41 ttl=64 time=0.059 ms
64 bytes from 192.168.1.1: icmp_req=42 ttl=64 time=0.059 ms
64 bytes from 192.168.1.1: icmp_req=43 ttl=64 time=0.063 ms
64 bytes from 192.168.1.1: icmp_req=44 ttl=64 time=0.060 ms
^C
--- 192.168.1.1 ping statistics ---
44 packets transmitted, 44 received, 0% packet loss, time 42998ms
rtt min/avg/max/mdev = 0.057/0.065/0.078/0.007 ms

Last edited by Pl3th0r4x; 02-20-2012 at 04:24 PM.
 
  


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 problem KenTheFurry Linux - Networking 4 08-30-2010 04:21 PM
centos - pptpd jarias Linux - Newbie 7 05-15-2009 11:22 AM
[SOLVED] Kill a hung task when kill -9 doesn't help 10110111 Linux - General 4 04-02-2009 11:10 AM
pptpd help rohang Linux - Networking 1 02-25-2006 06:48 PM
pptpd carlg Linux - Newbie 0 07-05-2004 07:28 PM

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

All times are GMT -5. The time now is 08:28 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