LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   access internet without proxy (http://www.linuxquestions.org/questions/linux-networking-3/access-internet-without-proxy-369537/)

linetnew 10-03-2005 09:12 PM

access internet without proxy
 
hello,
I have one Linux machine connected to hardware router to ISP there are many internal machines that are connected via switch to that main linux machine. now i know i can access internet throgh this main linux machine but can it be possible to run that machine in text mode only always and then let internal machines access internet. how to do that?

acid_kewpie 10-04-2005 02:54 AM

You just need to set up ip masquarading:

echo "1" > /proc/sys/net/ipv4/ip_forward

there's some more info here http://www.linuxquestions.org/questi...ticle&artid=23

pembo13 10-04-2005 03:15 AM

Here is another link to help you out: IP Masquerade HOWTO

linetnew 10-05-2005 12:52 PM

Currently as i said with /etc/resolve =>
nameserver 10.0.0.1
searh localdomain

i am able to get ping www.yahoo.com result as yahoo's IP address is detected
but unable to ping it from internal machine via Squid proxy to Internet?
I even tried with giving ISP given DNS IP as nameserver but then request even
will not able to resolve yahoo's IP address. nslookup and dig gives whole
proper output. also how to use whois on my internel pcs to get all information
related to domain address?
i have enabled named service on all pcs.

pembo13 10-05-2005 06:00 PM

Quote:

Originally posted by linetnew
Currently as i said with /etc/resolve =>
nameserver 10.0.0.1
searh localdomain

i am able to get ping www.yahoo.com result as yahoo's IP address is detected
but unable to ping it from internal machine via Squid proxy to Internet?
I even tried with giving ISP given DNS IP as nameserver but then request even
will not able to resolve yahoo's IP address. nslookup and dig gives whole
proper output. also how to use whois on my internel pcs to get all information
related to domain address?
i have enabled named service on all pcs.

That is normal, that is how the Squid proxy works. The clients _cannot_ access the outside world directly, hence they cannot do name resolution.

linetnew 10-05-2005 09:40 PM

so did that mean if i disable squid and run my proxy server again in text only mode then i can use that service of ping www.google.com with help of IP tables or is there any other way?


All times are GMT -5. The time now is 04:11 AM.