Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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_forwardIf 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.htmlhttp://www.tldp.org/HOWTO/mini/TransparentProxy.html

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

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

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/linuxbut 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 1what does it mean...
pls give some solutionregards
kishore

Did you download it from www.kernel.org?
ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.18.tar.gzIf 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/)

![]() |
Linux Lost
|
Should I install Linux??
|

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