LinuxQuestions.org
Help answer threads with 0 replies.
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 08-23-2001, 11:27 AM   #1
johneclement
LQ Newbie
 
Registered: Aug 2001
Distribution: RedHat, Mandrake
Posts: 1

Rep: Reputation: 0
Question mandrake 8.0 IP masquerading


Hi All,

My box at home, owing to the appearance of several new boxes in the house, is now to become a gateway. Its got Mandrake 8.0 on, which I've been happy with for quite a while. But reading up on IP masquerading and what knot has served me with lots of information on re-compiling the kernel with CONFIG_IP_whatever in and various other things. And how to do it in RedHat (which I thought was very similar to Mandrake).

The thing is having compiled it, guessing most of the bits I didn't know, I can't actually find the image. Does mandrake call it something funny. Its not in /usr/src/linux-x.../arch/i386/boot or anywhere else (or so it seems)

anyway. The long and the short of this post is:

Should I stick with Mandrake for IP masquerading, in which case any help gratefully received.

Or. Shall I go back to RedHat 6.2 (latest ver I have)?

Many thanks.

JC
 
Old 08-23-2001, 12:28 PM   #2
SensFan
Member
 
Registered: May 2001
Location: Toronto, Canada
Distribution: Slackware
Posts: 67

Rep: Reputation: 15
I use Mandrake 8.0 with iptables to perform masquerading and make my Linux box the gateway for other boxes on the LAN. All I did was install iptables (rpm is on the CD's or you can get the source and recompile the kernel as well) and then did:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

where eth0 is my external interface.

Once I knew it was working I placed them in /etc/rc.d/rc.firewall so they are done on startup. (you can make them excute on startup in otherways as well)

Following that you could also use iptables to act a firewall packetfilter to provide some security. Check the Security fourm for some tips. I basically studied the ipchains and iptables scripts posted there and adapted them for my needs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Masquerading nanoprobe SUSE / openSUSE 2 06-11-2005 11:27 AM
What exactly do I do for Ip Masquerading? DJOtaku Linux - Wireless Networking 13 06-10-2005 04:24 AM
Masquerading sirdirki Linux - Networking 2 09-13-2004 01:20 PM
IP Masquerading upr8830 Linux - Networking 3 06-04-2003 03:00 PM
IP masquerading. somebody help me! Johnsernickle Linux - Networking 4 10-22-2002 07:57 PM

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

All times are GMT -5. The time now is 12:47 PM.

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