Re: Device access - /dev/ipnat

2005-06-30 Thread Abu Khaled
On 6/29/05, Odhiambo Washington [EMAIL PROTECTED] wrote:
 Hello FreeBSD lovers,
 
 In the current FreeBSD ports, squid-2.5STABLE10 has a patch that allows
 it to run without dying even though it does not have access to
 /dev/ipnat.
 
 This access is important where squid is running in a transparent proxy
 setup.
 
 I am running several FreeBSD 5.x boxes with squid in transparent proxy
 mode, so this problem is a big one for me.
 
 The patch seems to be a workaround, but I'd really like to give squid
 access to this device anyway.
 
 My thinking was that I can solve the problem of access to /dev/ipnat
 using /etc/devfs.conf. However, my reading of the comments in this file
 does not give me any clear method of achieving what I want.
 
 Am I right in my thinking that /dev/ipnat device is created on the fly
 in FreeBSD 5.x? As such I cannot change the permissions on it, yes?
 
 How do I solve my problem, if anyone can advise me? It will server as
 my first lesson with devices in 5.x.
 
 
 Thanks in advance.
 
 
 -Wash
 

execute the following to enable squid to access /dev/ipnat
# chgrp squid /dev/ipnat
# chmod g+rw /dev/ipnat

Add them to /etc/rc.local to execute them on boot/restart
chgrp squid /dev/ipnat
chmod g+rw /dev/ipnat

-- 
Kind regards
Abu Khaled
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Device access - /dev/ipnat

2005-06-29 Thread Odhiambo Washington
Hello FreeBSD lovers,

In the current FreeBSD ports, squid-2.5STABLE10 has a patch that allows
it to run without dying even though it does not have access to
/dev/ipnat.

This access is important where squid is running in a transparent proxy
setup.

I am running several FreeBSD 5.x boxes with squid in transparent proxy
mode, so this problem is a big one for me.

The patch seems to be a workaround, but I'd really like to give squid
access to this device anyway.

My thinking was that I can solve the problem of access to /dev/ipnat
using /etc/devfs.conf. However, my reading of the comments in this file
does not give me any clear method of achieving what I want.

Am I right in my thinking that /dev/ipnat device is created on the fly
in FreeBSD 5.x? As such I cannot change the permissions on it, yes?

How do I solve my problem, if anyone can advise me? It will server as
my first lesson with devices in 5.x.


Thanks in advance.


-Wash

http://www.netmeister.org/news/learn2quote.html

--
+==+
|\  _,,,---,,_ | Odhiambo Washington[EMAIL PROTECTED]
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+==+
When we are planning for posterity, we ought to remember that virtue is
not hereditary.
-- Thomas Paine
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]