LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2012, 03:51 AM   #1
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Rep: Reputation: 0
Screwed up my Network with Nano: how to reboot?


I was following this guys tut with how to set up a a Virtual Private Network (VPN). He was having me go through root, and using Nano, editing the IP in my pptpd.conf

Well his tut turned out to be a little bit more than wrong, and I did the stupidest thing. I had a text file of all my original IP's just in case I messed up. Well it didn't work, it was getting late, and then really not thinking that I changed anything that mattered, I closed the text editor without saving the previous configuration!!

No my Internet wont connect. My roommates are gracious enough to let me borrow theres for now. I asked my teacher, "can I just uninstall/reboot pptpd.conf?" He said I would have to go through the network manager and use a program or such there.

Here is the tut that I followed.

Code:
sudo su
Code:
apt-get install pptpd -y
Code:
ifconfig
Code:
nano /etc/pptpd.conf
Code:
#localip 192.168.0.1
    #remoteip 192.168.0.234-238,192.168.0.245
    # or
    #localip 192.168.101.1
    #remoteip 192.168.101.200-245
Change the previous box of code to this

Code:
#localip 192.168.0.1
    #remoteip 192.168.0.234-238,192.168.0.245
    # or
    localip 192.168.1.70
    remoteip 192.168.1.72,192.168.1.74,192.168.1.76,192.168.1.78
__________________________________________________________________

Code:
nano /etc/ppp/chap-secrets
Code:
# Secrets for authentication using CHAP
    # client    server    secret    IP addresses
Code:
As you can see in my screenshot below, I have a user named 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
_________________________________________________________________

At this point I got stuck because the pic on the tut was not matching my Terminal window.

I logged out an saved it, and now my Internet is not connecting at all.

Anybody can tell me how to maybe reset the pptpd.conf ?

And if someone can explain where to find a good method with setting up a VPN or proxy in Linux, that would be awesome. One of the programs in my preferences is called "Network Proxy", but I really do not know how to set it up. I am using Ubuntu 10.10. Tnk u LQ!
 
Old 02-17-2012, 07:07 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Which distribution are you using and was this tuto for your distribution? Is the ip in your network static or dynamic?

Regards
 
Old 02-17-2012, 08:16 AM   #3
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
What type of internet access you've used before the accident?

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.
 
Old 02-17-2012, 01:24 PM   #4
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ukiuki View Post
Which distribution are you using and was this tuto for your distribution? Is the ip in your network static or dynamic?

Regards
This is what he says in the beginning. My IP is static.

Quote:
This will be a PPTP VPN, hosted by an Ubuntu Linux machine. It isn't the most secure, but it gets the job done.

Quote:
Originally Posted by Samotnik View Post
What type of internet access you've used before the accident?

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.
It is Verizon FiOS. I am going to try that out right now. Thanks.

How do I kill the process just

Code:
kill pptpd
and then run what command with

Code:
/etc/init.d/networking restart
?

Last edited by Pl3th0r4x; 02-17-2012 at 01:26 PM.
 
Old 02-19-2012, 11:01 AM   #5
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
Don't know what is Verizon FiOS, but if you have static ip, and you didn't change /etc/network/interfaces, then it should work.
 
Old 02-19-2012, 01:04 PM   #6
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
yeah, but Idk what you mean what do I do just add this

/etc/network/interfaces

to terminal?

http://www.linuxquestions.org/questi...2/#post4606052

He says to kill the PID,

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
This is what my terminal says. How do I kill the pid?
 
Old 02-19-2012, 04:51 PM   #7
Pl3th0r4x
Member
 
Registered: Dec 2011
Location: Land of Derk
Distribution: Derka
Posts: 71

Original Poster
Rep: Reputation: 0
*wrong thread*

Last edited by Pl3th0r4x; 02-19-2012 at 06:16 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network interface does not come up after reboot tikit Linux - Networking 4 03-22-2016 08:48 AM
network on reboot qwerty.yp Linux - Networking 2 12-02-2010 12:22 PM
No Network after Reboot patisawsome Ubuntu 3 05-07-2006 11:42 PM
network down after reboot ZaphyR Linux - Networking 1 08-12-2004 10:00 AM
HELP!!, Can't login anymore because I screwed up network config ern_day Linux - Newbie 5 07-14-2003 02:16 AM


All times are GMT -5. The time now is 06:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration