Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
the easiest way that i have found is to install an app called firestarter.
it manages your ip share, firewall, port routing, etc. And its GUI !
if you want to share via dhcp, you may have to install that package also. Otherwize, give your lan computers an ip address like 192.168.0.3 and up. let us know if you have any truoubles.
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216
Rep:
Basically, you want to use your Linux computer as a router. No problem here. You can either assign static IP addresses to the computers on your LAN (your Linux computer must have a static on the LAN) and set their default gateway to the Linux IP address, or you can setup DHCP on the Linux system to assigned an IP address to all your LAN computers from a pool. Using DHCP with pass them the default gateway and DNS information.
On you Linux system, you must have IP_FORWARDING enabled in the kernel so will route IP packets. Also, your WLAN router must be able to find your LAN through the Linux system. If you can't do that, they you'll need to setup masquerading through iptables to properly forward Internet traffic from your LAN computers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.