LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2004, 01:20 PM   #1
cutegul985
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat Linux
Posts: 3

Rep: Reputation: 0
IP Masquerading or Proxy server


I am currently using windows 2000 server with ISA to let my LAN PCs in my internet cafe access to internet. I want to use Redhat Linux instead but I don't know if I have to use IP Masquerading alongwith proxy server and which proxy server to use. Plz help me.
 
Old 10-17-2004, 02:29 PM   #2
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
you have two options

1) use IP MASQUERADE only to share you interenet connection
2) use ip masquerade + tranparent proxing using squid, yeah squid is the best cache/proxy package for linux/unix

okay in first case you have to put do someting like this
echo 1 > /proc/sys/net/ipv4/ip_forward (this is enable forwarding)

iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.0.0/24 -d 0/0 -j MASQUERADE

( this will enable MASQ "interent connection sharing for you local LAN thourgh your this redhat box, don't forget to replace -o ppp0 with your EXT interface may be you have eth0 to internet .

put this two lines in any of your start script hmm rc.local (i don't remember what is this called on rd coz i don't use rd however check in /etc/rc.d/ directory file with the name "local" in it.

now im sure you could configure you windows client yourself

Okay the second option is kinda cool and good see "squid" will give you local cache and this will gives your clients fast Internet contents
however im not going to teach you howto setup squid "tranparently" however there are lot of howtos avaible online just point you browser to google.com and type something like "squid howto" or "squid tranparent proxing" , etc

regards
 
Old 10-19-2004, 01:11 PM   #3
cutegul985
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat Linux
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Mardanian. Plz clarify if I can use just squid without IP masquerading. I am currently using ISA server 2000. What do u think if squid will give me better performance than ISA server. Also tell me if the commands u told work for nay version of Linux. By the way, if are from Mardan in Pakistan, I am from Nowshera, pakistan

Last edited by cutegul985; 10-19-2004 at 01:19 PM.
 
Old 10-19-2004, 01:18 PM   #4
n3tw0rk
Member
 
Registered: Sep 2003
Location: Rawalpindi, Pakistan
Distribution: Slackware
Posts: 86

Rep: Reputation: 15
Yes you can use setup squid and enable your clients to use the Internet without having to setup IP masquerading. Squid is no doubt the best proxy server out there, most of the ISPs use squid. There might not be a very significant performance difference but squid itself is very flexible.
 
Old 10-19-2004, 01:33 PM   #5
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
I thinks you got the answer , squid is the best cache/proxy server around even ISP using only squid these days for there cache servers.

squid configuration is very easy only 8 lines or few to change in squid.conf and here your proxy/cache server ready to server your clients

everything is well documented on squid home http://www.squid-cache.org/ or you could use google for setup squid for transparent proxing google agian for that thing

Well myself i like to do things from sources i duno what you like may be rpm ?
i recommend to it from source it willl gives you more control and more knowledge in end.

sure im from mardan

regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
IP Masquerading w/ iptables unreliable on Red Hat 9 server qwertyman19 Linux - Networking 3 11-01-2004 11:23 AM
IP Masquerading or Proxy server cutegul985 Linux - Software 0 10-17-2004 01:10 PM
Exim masquerading mail to AOL users with broadband SMTP server llamakc Linux - General 0 12-13-2003 08:58 AM
IP Masquerading and Proxy service (newbie) prowzen Linux - Networking 1 05-17-2001 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration