LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-24-2015, 10:50 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post Help for implement this scenario.


Hello.
I have a ADSL connection with a Asus ADSL Modem and want launching a Linux gateway.
I bought a Raspberry Pi and want to install Linux on it and use it as my Linux firewall and my Linux PC use this device for connected to the Internet.
My scenarios is that connect ADSL Modem to Pi NIC and connect my PC to external NIC that connected to USB port of Pi.

My questions are :
1- How can I share internet from Pi to my PC? Should I use Squid-cache for share internet service? Can I use route command for forward internet to my PC?
2- As I said, I want to use this device as a firewall and I want to disable some useless services on it, Which services must be disabled?
3- Must I use DHCP service?

Thank you.

Last edited by hack3rcon; 06-24-2015 at 10:53 AM.
 
Old 06-24-2015, 11:36 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
You could either use a wired USB to Ethernet device or a wireless USB to WIFI device on the Pi to allow your PC to attach to it. If you choose the WIFI option there's software like a host AP daemon which will behave as an access point for you.

Only you can really determine what services are useless where you should block them. The rule of thumb I've always used it to turn them all off and then turn on things you need based on how you access the Internet and also evaluate whether or not each choice is a good idea.

As far as DHCP, well I'd think the Pi should DHCP from the cable modem to get it's address, unless they set your home network up where it is a fixed IP. And as far as the PC or PCs attaching to the Pi? Why not DHCP? You can use fixed IP addresses, but I see no benefit one way or another except that you'd have to manage it more if you used static IP and had topology changes occurring in your network.
 
Old 06-25-2015, 09:41 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I just want wire connection and not wireless.
How about sharing internet from Pi to my PC?
 
Old 06-26-2015, 06:41 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Any idea?
 
Old 06-26-2015, 07:58 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
There is lots of information on how to setup a linux NAT router. The most basic firewall can be configured very easily as in the link below. Most ADSL MODEMS are also routers so you could disable it by configuring in bridge mode. If you do configure as a bridge you will also need to add pppoe to the Pi to log in to your ISP.

http://www.revsys.com/writings/quicktips/nat.html
 
  


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
Is this scenario conceivable? Completely Clueless Linux - Security 6 12-08-2014 06:02 PM
implement a Linux based network scenario arazjan Linux - Networking 8 05-09-2014 12:16 PM
Scenario detortech Linux - Newbie 11 04-18-2012 12:07 PM
can not SU to a user in one scenario deepak_cucek Linux - Newbie 1 07-31-2009 08:25 AM
Best install scenario mobo Linux - General 4 11-13-2004 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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