LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-19-2003, 02:31 PM   #1
Newbie Chris
LQ Newbie
 
Registered: Mar 2003
Distribution: Red Hat 8.0
Posts: 5

Rep: Reputation: 0
Help w/ nfs and iptables


Hi, I'm new to Linux and appologize if this is a dumb question. I've got Red Hat 8.0 installed on two computers. I've got the networking working fine, ping, telnet etc... The problem is with nfs. The only way I can get nfs working is by stopping iptables. How do I configure iptables? I have been starting and stopping it with the Red Hat configuration utility, but it doesn't seem to do anything except turn it on/off. TIA for an advice/answers

Chris
 
Old 03-19-2003, 02:35 PM   #2
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
iptables conf

paste your output of 'iptables -n -L' and give me your local ip configuration for both machines.

Also, remember to hide any public IP addresses you may have in your configuration.
 
Old 03-19-2003, 02:55 PM   #3
Newbie Chris
LQ Newbie
 
Registered: Mar 2003
Distribution: Red Hat 8.0
Posts: 5

Original Poster
Rep: Reputation: 0
Here's the output from "iptables -n -L" on the client computer

Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (1 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:0:1023 flag
s:0x16/0x02 reject-with icmp-port-unreachable
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:2049 flags:0
x16/0x02 reject-with icmp-port-unreachable
REJECT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpts:0:1023 reje
ct-with icmp-port-unreachable
REJECT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:2049 reject-
with icmp-port-unreachable
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:6000:6009 f
lags:0x16/0x02 reject-with icmp-port-unreachable
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:7100 flags:0
x16/0x02 reject-with icmp-port-unreachable

NFS server
hostname: black ip: 192.168.0.4

NFS client
hostname: blue ip: 192.168.0.5

I hope that's what you meant by local ip
 
Old 03-19-2003, 03:13 PM   #4
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
few questions..

What's a black and a blue ip? I'm assuming they're both on your localnet, but for my own references, I don't know what you mean by black/blue.

Also.. What are all those crazy rules you have in your firewall? If you don't know, they probably came with redhat. One of the rules disables all incoming access to your privileged ports, another blocks all udp traffic incoming, the others seem to block specific ports..

If you're security conscious, you *NEED* to get someone that knows what they're doing to look at your net connected box or someone's going to hack your sh*t.

If you don't care, clear your firewall settings and redo it yourself with your specific settings instead of using an out-of-the-box config. The out-of-the-box config obviously isn't fitting your needs.

Hope this helps.
 
Old 03-19-2003, 03:19 PM   #5
Newbie Chris
LQ Newbie
 
Registered: Mar 2003
Distribution: Red Hat 8.0
Posts: 5

Original Poster
Rep: Reputation: 0
black and blue are the hostnames I gave the computers (based solely on the color of the case

I have no idea what all those rules are, they must be defaults. The two computers are sitting behind a D-Link router, which I believe has a firewall built into it. How dangerous would it be to rely only on that?
 
Old 03-19-2003, 03:29 PM   #6
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
ha

ha, good naming scheme. ;)

If you *think* there's a firewall on your d-link, you'd better check first. You probably don't *need* a firewall if you're just a single user jacking around with linux. But, it's great to have, and great to learn if you don't know much about it. Search for "iptables HOWTO" on google. *LEARN* how a firewall works, if you do that, you can run any firewall whether it's that POS windows software BlackICE or it's a Solaris Cyberguard box.

Again.. and this is advice I offer everyone, if you hope to be an efficient *nix administrator, learn this stuff. If you're just hobbying around, it's your call what you do with your time. That HOWTO is a great place to start. Richard W. Stevens book TCP/IP Illustrated is a great book to further your knowledge in firewalls and anything dealing with TCP/IP (As the title suggests.)

*shrug* maybe it was Steven W. Richards?

Dyslexia for cure found.
 
  


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
IPTABLES: letting NFS poke through! zepplin611 Linux - Security 3 03-26-2005 10:23 PM
Help with NFS, portmapper and iptables tinman77 Linux - Security 1 02-06-2005 10:35 AM
Slackware 10.0 - using NFS with iptables firewall tinman77 Linux - Networking 2 02-05-2005 07:12 PM
NFS server with IPTABLES mijohnst Linux - Networking 1 08-11-2004 10:26 PM
NFS and IPTables? german Linux - Networking 3 11-11-2003 08:25 AM

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

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