LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2018, 11:46 PM   #1
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Rep: Reputation: 84
Using a PC as a router (PPPoE)


Hello guys,
I was looking at
https://en.wikipedia.org/wiki/List_o..._distributions

and looked at
http://leaf.sourceforge.net

To be frank, I have no idea what to do with it.
I burned the image to a DVD and booted a PC with the DVD. I get a command prompt asking for a password.
Yes, I looked at their documentation. I don't get it. I don't know what to do with the command prompt.

Is there some easy to use Linux distribution for this?
Something with a GUI?
I just need to make a PPPoE connection.
I will have 3 NICs.
One will connect to my ADSL modem.
The 2 other NICs will connect to my computers.

Last edited by vmelkon; 04-22-2018 at 11:47 PM.
 
Old 04-23-2018, 12:16 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by vmelkon View Post
i don't think this is suitable for installation on a consumer PC (which model/type/age/specs etc.?).

searching linux use pc as router distro, i quickly click through to https://www.dd-wrt.com/wiki/index.php/X86
(but of course you should look at the other results, too)
 
Old 04-23-2018, 12:43 AM   #3
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
The PC would be a Pentium 4, 2.4 GHz, 32 bit.
512 MB DDR2 RAM.
IDE HDD, 40 GB or 200 GB, whichever I choose to install.

Last edited by vmelkon; 05-04-2018 at 10:05 AM.
 
Old 04-23-2018, 07:32 AM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Check PFSense. It is BSD so strictly not Linux. But very good. It has a web gui. Basically you never interact directly with the BSD, only through the web gui. PFSense has PPoE built in.

jlinkels
 
Old 04-23-2018, 09:40 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Smoothwall would do what you want.
 
Old 04-23-2018, 10:03 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
this mite be related:
https://www.linuxquestions.org/quest...ternet-774246/
 
Old 04-23-2018, 11:21 AM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
This might be the thing for you
https://distrowatch.com/table.php?distribution=alpine
 
Old 04-23-2018, 01:05 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Guess you could have some settings in the adsl that could make the connection point it it too??
 
Old 05-05-2018, 11:32 AM   #9
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by jefro View Post
Guess you could have some settings in the adsl that could make the connection point it it too??
If you mean using the ADSL modem to make the PPPoE connection, yes, that is possible. It is a modem/router with a single LAN.
I don't have a hub.
Also, this is a learning experience for me.

I tried out pfSense. The PPPoE connection worked. DHCP on the LAN0 worked and got an IP. I was open the web page for the pfSense.
My LAN 1 (the second NIC) is old and probably defective. I will try another one.
 
Old 05-06-2018, 05:02 PM   #10
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by jlinkels View Post
Check PFSense. It is BSD so strictly not Linux. But very good. It has a web gui. Basically you never interact directly with the BSD, only through the web gui. PFSense has PPoE built in.

jlinkels
Thanks for the advice.
I made the PPPoE connection.
I have my PC connected to one of the NIC of the PFSense PC. I set this NIC as LAN0. It gets an IP address and I can surf the weeb. I can ping this NIC.

It sets the 2nd NIC as OPTIONAL? I connected my other PC to this NIC. It gets a IP address but I can't ping the NIC and can't surf the weeb.
 
Old 05-06-2018, 07:24 PM   #11
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
In your first post you mentioned that you have 3 NICs in the PFSense PC. So I take it you use one for the connection to Internet. The second one is set to the internal network. And according to you last post that works.

This is the default configuration for PFSense. If you want to use the third NIC for internal LAN (so your seconds internal NIC then) you have to configure PFSense in the proper way. It does not do that automatically.

I know PFSense can do it. It can have a second WAN connection, a second LAN connection or the third NIC can be completely independent. It it will be a matter of studying the user manual and browsing the PFSense forums. It is not difficult, I have done it before, I just don't exactly know anymore how to do it. It is just I am not going to read the manual for you.

jlinkels
 
Old 05-07-2018, 07:09 PM   #12
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Since PFSense is a firewall distro, the three nics are probably outside, inside and dmz. The inside port should be attached to a router to distribute network connections. PCs don't have enough expansion slots to make them into switches.
 
Old 05-09-2018, 09:16 PM   #13
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
I was able to make it work on the NIC that PFSense calls OPT1.
Yes, there are 3 NICs. One is used to make a PPPoE connection and it physically connects to a ADSL modem.
The one that is called LAN1 connects to one of the PCs.

I went into the GUI. It was under the Rules section. There were no rules for OPT1 so I made similar rules that LAN1 had and now it works.
I can now ping that NIC port (OPT1). I can also use the PC connected to that port to access the Internet.
 
Old 05-09-2018, 09:23 PM   #14
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by AwesomeMachine View Post
Since PFSense is a firewall distro, the three nics are probably outside, inside and dmz. The inside port should be attached to a router to distribute network connections. PCs don't have enough expansion slots to make them into switches.
I guess I would have to compare with my d-link router to see what rules are useful.
Yes, unfortunately PCs don't have too many PCI slots these days. The one I am using has only 2. The other 2 are PCI-Ex 1x. There is 1 PCI-Ex 16 x.

I could try my old Duron. It has 1 onboard LAN + 4 PCI slots.
 
  


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
Missing /var/run/pppoe.conf-pppoe.pid.pppoe file acraig Debian 2 11-02-2010 07:24 PM
Need Help with pppoe thru a router gtbutler Linux - Networking 4 08-15-2006 08:52 PM
internet with pppoe behind a router mdk2k Linux - Hardware 1 04-25-2004 09:55 PM
Slack 9.1 as router/gateway and PPPoE uros678 Linux - Networking 2 12-12-2003 03:29 AM
pppoe through linux router/firewall ..Tookers.. Linux - Networking 2 04-30-2003 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:35 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
Open Source Consulting | Domain Registration