Computing.Net > Forums > Linux > making linux as proxy

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

making linux as proxy

Reply to Message Icon

Name: beboldpls
Date: March 25, 2004 at 05:36:59 Pacific
OS: rehat linux8.0
CPU/Ram: 256mb
Comment:

hi friends,
i have a small network with 5 systems. one is redhat linux8 and remaining are win98. i want to allow all the systems use internet through this linux. i mean i wann my linux acts as a proxy
i have router, switch working good with global ip.. i want to make these four also use internet. so pls help me
1. how to make my system as proxy
2. how to implement natting.

pls suggests some documentation sites also..

thanx in advance...

regards
kishore



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: March 25, 2004 at 09:05:17 Pacific
Reply:

You can easily turn it into a gateway with IP Masquerading, eg:
# modprobe iptable_nat
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# echo 1 > /proc/sys/net/ipv4/ip_forward

If you want a caching proxy, have a look at squid.


http://www.tldp.org/HOWTO/Masquerading-Simple-HOWTO/index.html
http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html

http://www.tldp.org/HOWTO/mini/TransparentProxy.html


0

Response Number 2
Name: beboldpls
Date: March 25, 2004 at 23:28:23 Pacific
Reply:


thank you very much mr.3Dave.. for ur kind reply..

i'll check it now itself..

mr 3Dave pls tell me any site address from which i can download redhat linux kernel-2.4.18

i just searching many sites from google, but didnt find satisfied results..

pls give some link for download kernel-2.4.18

thank you very much...

regards
kishore



0

Response Number 3
Name: beboldpls
Date: March 25, 2004 at 23:39:05 Pacific
Reply:

hi 3Dave,
igot the link for kernel so im downloading it.

thanx for ur help..
i'll get back you after finishing this ipMasquerating..

regards
kishore


0

Response Number 4
Name: beboldpls
Date: March 26, 2004 at 03:23:26 Pacific
Reply:

hi frnds,
1. i created a folder /usr/src/kernel
2. uncompressed new kernel in that.
3 mv linux linux-2.4.18 (renamed)
4. ln -s /usr/src/kernel/linux-2.4.18 /usr/src/kernel/linux.
6 created another folder
/usr/src/archive/netfilter
7. uncompressed iptables-1.2.9
8 cd /iptables
now im in /sur/src/archive/netfilter/iptables-1.2.9
now i try to compile
make KERNEL_DIR=/usr/src/kernel/linux

but im getting this error
Extensions found:
cc -O2 -Wall -Wunused -I/usr/src/kernel/linux/include -Iinclude/ -DIPTABLES_VERSION=\"1.2.9\" -fPIC -o extensions/libipt_conntrack_sh.o -c extensions/libipt_conntrack.c
In file included from /usr/src/kernel/linux/include/linux/config.h:4,
from /usr/src/kernel/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/kernel/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_conntrack.c:11:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
make: *** [extensions/libipt_conntrack_sh.o] Error 1

what does it mean...
pls give some solution

regards
kishore



0

Response Number 5
Name: 3Dave
Date: March 26, 2004 at 03:25:01 Pacific
Reply:

Did you download it from www.kernel.org?
ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.18.tar.gz

If you did you are getting the source which you will have to compile yourself. Make sure you read the README file contained in the archive. If the file you downloaded ends with .rpm then you probably have a pre-compiled kernel which may be easier to install but wont be as optimised as if you compiled it yourself.

A good place to look for redhat rpm files is http://rpmfind.net. You may also want to look at apt-get or yum which simplify downloading and installing packages (http://apt.freshrpms.net/)


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

Linux Lost Should I install Linux??



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: making linux as proxy

Installing Linux as a server www.computing.net/answers/linux/installing-linux-as-a-server/19877.html

Linux as router www.computing.net/answers/linux/linux-as-router/10334.html

What makes Linux better? www.computing.net/answers/linux/what-makes-linux-better/4140.html