Networking Forums

Networking Forums > Computer Networking > Linux Networking > Whitelisting a host with iptables

Reply
Thread Tools Display Modes

Whitelisting a host with iptables

 
 
Geico Caveman
Guest
Posts: n/a

 
      09-28-2006, 09:04 PM
Hello,

I am running an NFS server on a Debian machine for a set of scientific
instruments that understand only NFS (so please do not tell me that NFS is
insecure - I already know that and realize that there is no option here).

I have gone through the following document, modifying things
(in /etc/services, modules.conf - yes I did use update-modules), etc. :

http://www.tldp.org/HOWTO/NFS-HOWTO/security.html

$rpcinfo -p yields :

$ rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 4000 status
100024 1 tcp 4000 status
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100005 1 udp 4002 mountd
100005 2 udp 4002 mountd
100005 1 tcp 4002 mountd
100005 2 tcp 4002 mountd

All these ports are open on my firewall (both ways - I am using guarddog for
firewall). Yet, I see blocked packets in my syslog :

/var/log/syslog:Sep 28 16:51:56 labmonkey kernel: DROPPED IN=eth0 OUT=
MAC=<> SRC=<> DST=<> LEN=84 TOS=0x00 PREC=0x00 TTL=255 ID=37 PROTO=ICMP
TYPE=8 CODE=0 ID=31488 SEQ=4

"<>" = obfuscated IP and Mac addresses.

I then allowed ICMP requests (a highly risky thing to do). Yet, the clients
complain that they cannot mount the NFS share. When I drop the firewall
entirely, they can, so the underlying NFS server setup is allright. The
problem is the firewall.

Now, how do I whitelist a client (by IP address) using iptables so that it
can connect to any damn port it pleases etc. (as if the firewall did not
exist for that particular host) ? With BSD's pf, this is very easy to do,
but I have never been particularly comfortable with the relatively arcane
syntax of iptables. Hence the question.

Is it possible to integrate whatever modification you suggest with guarddog
(for obvious reasons, I do not want multiple programs / methods messing
with the same firewall - that is chaos).

Thanks.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh host setup - iptables/ip_forwarding erniehannell@yahoo.ca Linux Networking 1 09-22-2005 01:16 PM
SOHO router with whitelisting Walter L. Williams Network Routers 2 05-03-2005 03:14 PM
iptables block host name instead of ip address - Linux Networking 2 02-04-2005 08:56 AM
iptables proxy two ips for one host Fritz Bayer Linux Networking 2 07-12-2004 06:50 AM
Iptables, DMZ host or port forwarding Michael Parmeley Linux Networking 2 11-25-2003 10:24 PM



1 2 3 4 5 6 7 8 9 10 11