Date: Fri, 17 Oct 2008 09:10:05 +0700 From: Kalpin Erlangga Silaen <kalpin@muliahost.com> To: freebsd-questions@freebsd.org Subject: IPFW UID match questions Message-ID: <48F7F3FD.5090209@muliahost.com>
next in thread | raw e-mail | index | archive | help
Dear all, I tried to implement IPFW rules like below on my shell server: /sbin/ipfw -q add 18600 allow tcp from any to personal_ip in /sbin/ipfw -q add 18650 allow tcp from personal_ip to any out uid kalpin /sbin/ipfw -q add 18660 allow tcp from personal_ip to any out uid root /sbin/ipfw -q add 18670 allow tcp from personal_ip to any out uid nobody /sbin/ipfw -q add 18700 deny tcp from personal_ip to any out I hope with this rule, only user kalpin could be use the vhost personal_ip. Below is brief description line 1 will allow all tcp incoming packets into personal_ip line 2 will allow tcp outgoing packets from personal_ip to anywhere if match uid kalpin line 3 same with line 2 if match uid root (to response identd request from IRC Network if identd run as root) line 4 same with line 3 if match uid nobody (to response identd request from IRC Network if identd run as fall into nobody) line 5 will deny all tcp outgoing packets But, IRC Network still could not get ident response from my server. If I removed line 5, then IRC Network get identd response. My identd process is: root 63932 0.0 0.1 3136 1028 ?? Ss 1:46AM 0:00.03 /usr/local/sbin/oidentd -C /usr/local/etc/oidentd.conf Is there anything else should be done to fix this problem? Thank you Kalpin Erlangga Silaen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48F7F3FD.5090209>