Click to See Complete Forum and Search --> : Red hat linux networking Question
elite_syntax
09-08-2003, 12:26 PM
I try to install red hat.I put as the gateway 192.168.0.1 themain computer is use 192.168.02 and the 2 pc is useing 192.168.0.3
But on the main computer it wouldn't let me go to my web pages why is that?
Could it be the iptables when i install my redhat at install time?
:confused: :confused:
Satanic Atheist
09-08-2003, 12:36 PM
Does the 2nd PC have access to the web?
You need IPTables to perform NAT Masq'ing to enable connectivity for all machines. You also need to do this:
> echo "1" > /proc/sys/net/ipv4/ip_forward
This will enable data forwarding across the gateway.
James
elite_syntax
09-08-2003, 12:43 PM
Originally posted by Satanic Atheist
Does the 2nd PC have access to the web?
You need IPTables to perform NAT Masq'ing to enable connectivity for all machines. You also need to do this:
> echo "1" > /proc/sys/net/ipv4/ip_forward
This will enable data forwarding across the gateway.
James
II use other ip like 192.168.1.1 gateway i didn't have a probs with get online with my main pc.
But when i reinstall and use 192.168.0.2 for the main pc.And use for the gatway for the main computer 192.168.0.1 i have a prob.
Why that? Do i have to flush my old iptables?:confused:
elite_syntax
09-09-2003, 09:20 AM
I planning to use internet shareing withthe 2 pc.Do i need to use the gateway?Or can i just write a script just for internet shareing and that would work?:confused:
Satanic Atheist
09-09-2003, 11:59 AM
If you've changed the IP addresses around, I suggest that you look through your firewall script and check to make sure that all the IPs that are referenced in there are correct.
If you want, I can send you a firewall script that blocks pretty much everything below port 1024.
James
elite_syntax
09-09-2003, 12:12 PM
Sure go ahead and send it to me:)
I planning to setup internet shareing.
Icarus
09-09-2003, 12:21 PM
make sure /etc/resolv.conf has your gateway. I have that problem often when I use different DNS servers between home and work...
nameserver 192.168.0.1
that might work for you
Or if you know what your ISP's DNS server is use that if you don't have DNS on your gateway
elite_syntax
09-09-2003, 12:28 PM
Originally posted by mahdi
make sure /etc/resolv.conf has your gateway. I have that problem often when I use different DNS servers between home and work...
nameserver 192.168.0.1
I use 192.168.0.1 and still had the probs.I put the dns in to and that didn't help.I useing dial-up
that might work for you
Or if you know what your ISP's DNS server is use that if you don't have DNS on your gateway