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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-18-2003, 09:24 AM
|
#1
|
Member
Registered: Jul 2003
Location: indore, india
Posts: 69
Rep:
|
Internet Sharing through Lan
unable to configure lan settings. I have two lans card install one is for internet and one is for local area network. I am able to connect to internet but not able to share it on lan. i have redhat 9.1
Kindly help
|
|
|
07-18-2003, 09:44 AM
|
#2
|
Member
Registered: Jan 2003
Location: I'm all in your mind!
Distribution: Debian
Posts: 248
Rep:
|
I'd like to find out how to do that too... I guess you must configure iptables to forward packets on your lan card connected to the net (let's say its eth0) to your other card (eth1)...
But I'm not sure if you need to do anything else to have a bridged network...
|
|
|
07-18-2003, 09:55 AM
|
#3
|
Member
Registered: Jul 2003
Location: indore, india
Posts: 69
Original Poster
Rep:
|
i dont find iptables
I can not find iptables. Can u please tell me where can i find those iptables where i can forward
|
|
|
07-18-2003, 10:05 AM
|
#4
|
Member
Registered: Jul 2003
Location: indore, india
Posts: 69
Original Poster
Rep:
|
I am able to connect to local LAN but now am unable to bring internet on any system.
that is when i connect to my local lan my i get disconnected from internet but when is deactivate my local lan i can access to internet
|
|
|
07-18-2003, 10:16 AM
|
#5
|
Member
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229
Rep:
|
The easiest way to share your internet connection and to setup a firewall is with "firestarter"
http://firestarter.sourceforge.net/
|
|
|
07-19-2003, 12:37 AM
|
#6
|
Member
Registered: Jan 2003
Location: I'm all in your mind!
Distribution: Debian
Posts: 248
Rep:
|
You should be able to type 'iptables' in a console and see some output. Try 'whereis iptables' to find it... Once you have it, find out more with 'man iptables'
|
|
|
07-19-2003, 01:11 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Location: Lisbon, Portugal
Distribution: Red Hat 9.0
Posts: 16
Rep:
|
Red Hat 9.0 has IP Forward disabled by default.
To enable it, do:
echo 1 > /proc/sys/net/ipv4/ip_forward
Afterwards you must configure Iptables to Masquerade the forwarded packets. (Lets assume that Internet is in eth0)
(Dynamic IP)
iptables -t -nat -A POSTROUTING -o eth0 -j MASQUERADE
(Static IP)
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to static_ip
|
|
|
07-20-2003, 09:47 AM
|
#9
|
Member
Registered: Feb 2003
Location: London, UK
Distribution: Gentoo/Debian
Posts: 39
Rep:
|
I use shorewall on my router. Its great becuase it doesn't have a GUI, becuase normally i use ssh to configure my router. Or if it had a webbased configuration tool then it would be even better, I think there's a webmin module. not sure.
But editing couple of simple files in shorewall is hell lot better then making a full blown bash scripts using iptables
|
|
|
All times are GMT -5. The time now is 11:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|