Intranet computers cannot see internet (need immediate help)
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.
Intranet computers cannot see internet (need immediate help)
was using a WinME computer as my gateway with Norton firewall and thought it about time to swap it out with my Linux Computer. My Linux computer was on the network as a workstation with one NIC beforehand and working great. Here is what I did (btw running RedHat 8):
1. powered down computers
2. added 2nd NIC to the linux box
3. booted the linux box up
4. (getting odd @ address at prompt) after some research found I needed to remain my computer name in the network file. Contents of /etc/sysconfig/network now:
NETWORKING=yes
HOSTNAME=linux
FORWARD_IPV4=true
5. Could now connect to the internet from Linux.
6. Could not connect to linux from my windows computer.
7. Stopped IPTABLES (custom script, probably has errors).
8. Had a few more problems and realized named wasn't running.
9. Started service named
10. Now can see Linux fine from the windows computer, but cannot see the internet from the windows computer. Names are translating though (IE finds the IP, just can't connect).
This is where I am stuck. Looks like it may be due to forwarding or routing.
try the following lines:
#****** allow forwarding **********
iptables -A FORWARD -m state --state NEW -i eth1 -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
if your eth0 ip is dynamic one: do masquerading
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
or in case of static ip:
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source=12.252.107.87
should do.
and don't worry about lines like "/bin/echo "1" > ....." - they make some firewall settings
important is
/bin/echo "1" > /proc/sys/net/ipv4/ip_forward
which has to be to allow forwarding
Confirm the netmask and gateway numbers you need to use for eth0.
snip
eth0 Link encap:Ethernet HWaddr 00:50:DA:07:33:C9
inet addr:12.252.107.87 Bcast:255.255.255.255 Mask:255.255.254.0
Got it working. Needed to add the forwarding lines to iptables to get it to work. When I had iptables "off" to test, I also had the forwarding rules off.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.