LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2002, 04:25 PM   #1
ck571
LQ Newbie
 
Registered: Dec 2001
Location: Buffalo NY
Posts: 3

Rep: Reputation: 0
Unhappy IP masquerading and firewall with Red Hat 7.2


I'm setting up a Linux box as a server to several Windows 2000 machines using Red Hat 7.2.

I realize that this edition of Red Hat does not come with a lot of the nice GUI's.

I've got two problems.


(1) I'm trying to set IP masquerading to allow my Windows clients to access the Internet, using iptables. I have been searching everywhere for documentations on this, but they don't really work.

(2) The default firewall settings with iptables seems to block everything. I couldn't even ping anywhere with it. Does anyone know how I can go about this?

I really appreciate any replies. It's driving me nuts :O)
 
Old 01-10-2002, 05:46 PM   #2
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
iptables

iptables will do masq'ing well. i was able to find tuns of example on google.com . also, check your xinetd setting to see if it's disabled anything.

here's a simple setup:

# Flush all tables
iptables -F; iptables -t nat -F; iptables -t mangle -F

#set default policies
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

try this at the end of your iptables scripts:

#### NAT ROUTING
iptables -t nat -A POSTROUTING -o <interface> -j MASQUERADE
 
Old 01-10-2002, 05:49 PM   #3
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
gui tools

one more thing : rh7.2 comes with lots of gui tools! fire up gnome or kde and explore!
 
Old 01-11-2002, 10:24 AM   #4
ck571
LQ Newbie
 
Registered: Dec 2001
Location: Buffalo NY
Posts: 3

Original Poster
Rep: Reputation: 0
iptables

Thanks for the reply.

Do I save these under /etc/sysconfig/iptables?

I've tried doing the following commands on the cli, and it works.


iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 192.168.0.252

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


Do you know where I can find information on firewall rules? I saw some pretty hairy examples out there, and I do not know the purposes of all the different ports that they are using.
 
Old 01-11-2002, 10:00 PM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
about ports stuff see you /etc/services file
 
Old 03-21-2002, 01:59 AM   #6
ibadoi
LQ Newbie
 
Registered: Mar 2002
Posts: 1

Rep: Reputation: 0
Forwarding with iptables

On eth0, to Internet I put squid (proxy server) and on eth1, to inside I put DHCP Server!
The default firewall settings with iptables seems to block everything (only squid on port 80 is on). Does anyone know how I can forward services from eth1 to eth0?
 
  


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
IP Masquerading w/ iptables unreliable on Red Hat 9 server qwertyman19 Linux - Networking 3 11-01-2004 11:23 AM
masquerading problem in Red Hat 8.0 gregmcavoy Linux - Networking 39 05-29-2003 02:16 AM
Red Hat 8 and Firewall...... cnc76 Linux - Distributions 1 01-24-2003 04:12 PM
IP Masquerading on Red Hat 7.3 Problems Joe Kerrigan Linux - Networking 4 08-04-2002 09:19 AM
Red Hat Firewall Sigmund Gudvang Linux - Networking 2 04-29-2002 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:04 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