Apache file upload
Hi I need a very simple web page to upload files on my Apache web server. I found some cgi script like this one http://www.raditha.com/megaupload/ but I always face "internal server error" message. Did anyone done some like that ? Thanks
Samba files used logging
Hello I've set up a little samba server on my OpenBSD box. I would like to know which files are being accessed (write, copy) by smbd. I tried fstat, pstat but none of them give me the name of the files. Any idea ? Thanks
Sendmail client multiple MX
Hi I'got a problem with sendmail on OpenBSD 4.1 It seems that the sendmail smtp client only try 2 mx for a domain with 4 mx with the same priority (e.g. aol.com) ; <<>> DiG 9.3.4 <<>> mx aol.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60021 ;; flags: qr aa; QUERY: 1, ANSWER: 4, AUTHORITY: 4, ADDITIONAL: 18 ;; QUESTION SECTION: ;aol.com. IN MX ;; ANSWER SECTION: aol.com.3600IN MX 15 mailin-04.mx.aol.com. aol.com.3600IN MX 15 mailin-01.mx.aol.com. aol.com.3600IN MX 15 mailin-02.mx.aol.com. aol.com.3600IN MX 15 mailin-03.mx.aol.com. Is it possible to configure sendmail to connect to all the mx ? Thanks in advance
Re: HFSC and SSH bug ?
I'm testing ssh coming from outside right now. With a ssh session I get all the packets going to ExtInAck pf.conf ext_if="xl0" scrub in log all altq on $ext_if hfsc bandwidth 2000Kb queue { default-Ext-In, sshExtInObsd, httpExtInObsd, ExtInAck } queue default-Ext-In bandwidth 20% hfsc(red linkshare 20% default) priority 1 queue sshExtInObsd bandwidth 10% hfsc(red realtime 100Kb) { sshinteractext, sshbulkext } queue sshinteractext bandwidth 50% priority 7 hfsc(red) queue sshbulkext bandwidth 50% priority 1 hfsc(red) queue httpExtInObsd bandwidth 10% hfsc(red linkshare 10%) queue ExtInAck bandwidth 10% hfsc(red realtime 100Kb) pass quick on lo0 all block log all pass in quick on $ext_if proto tcp to ($ext_if) port ssh flags S/SA keep state queue (sshbulkext sshinteractext) pass in quick on $ext_if proto tcp to ($ext_if) port 80 flags S/SA keep state queue (httpExtInObsd ExtInAck) pfctl -vvsq queue root_xl0 bandwidth 2Mb priority 0 {default-Ext-In, sshExtInObsd, httpExtInObsd, ExtInAck} [ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 ] [ measured: 0.0 packets/s, 0 b/s ] queue default-Ext-In bandwidth 400Kb hfsc( red default ) [ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 ] [ measured: 0.0 packets/s, 0 b/s ] queue sshExtInObsd bandwidth 200Kb hfsc( red realtime 100Kb ) {sshinteractext, sshbulkext} [ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 ] [ measured: 0.0 packets/s, 0 b/s ] queue sshinteractext bandwidth 100Kb priority 7 hfsc( red ) [ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 ] [ measured: 0.0 packets/s, 0 b/s ] queue sshbulkext bandwidth 100Kb hfsc( red ) [ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 ] [ measured: 0.0 packets/s, 0 b/s ] queue httpExtInObsd bandwidth 200Kb hfsc( red ) [ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 ] [ measured: 0.0 packets/s, 0 b/s ] queue ExtInAck bandwidth 200Kb hfsc( red realtime 100Kb ) [ pkts:414 bytes: 62180 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 ] [ measured: 5.7 packets/s, 6.97Kb/s ] pf.conf > On 2007/01/12 16:48, [EMAIL PROTECTED] wrote: >> I try with this pf.conf and the ssh interactive packets still go to >> the ExtInAck queue but the bulk ssh packets go to the right queue >> (sshbulkext) > > Add the 'flags S/SA' to all your 'passkeep state' rules and see if > that helps, also, you don't say which direction you're trying to SSH. > Your rules are just for SSH connections coming from outside your > network to the IP address of $ext_if. Is that what you're testing?
Re: HFSC and SSH bug ?
I try with this pf.conf and the ssh interactive packets still go to the ExtInAck queue but the bulk ssh packets go to the right queue (sshbulkext) I can't figure out why... ext_if="xl0" scrub in log all altq on $ext_if hfsc bandwidth 2000Kb queue { default-Ext-In, sshExtInObsd, httpExtInObsd, ExtInAck} queue default-Ext-In bandwidth 20% hfsc(red linkshare 20% default) priority 1 queue sshExtInObsd bandwidth 10% hfsc(red realtime 100Kb) { sshinteractext, sshbulkext } queue sshinteractext bandwidth 50% priority 7 hfsc(red) queue sshbulkext bandwidth 50% priority 1 hfsc(red) queue httpExtInObsd bandwidth 10% hfsc(red linkshare 10%) queue ExtInAck bandwidth 10% hfsc(red realtime 100Kb) pass quick on lo0 all block in log all pass out on $ext_if keep state pass in on $ext_if proto tcp to ($ext_if) port ssh keep state queue (sshbulkext sshinteractext) pass in on $ext_if proto tcp to ($ext_if) port 80 keep state queue (httpExtInObsd ExtInAck) - Original Message - From: "Joachim Schipper" <[EMAIL PROTECTED]> To: Sent: Friday, January 12, 2007 3:41 PM Subject: Re: HFSC and SSH bug ? > On Fri, Jan 12, 2007 at 03:23:15PM +0100, [EMAIL PROTECTED] wrote: >> I try to use HFSC on a gateway to queue packets. >> SSH packets never go to the right queue, always in the default queue. >> >> I test with this little pf.conf on a single interface machine and face the >> same problem. http packets go to the right queue ssh always to the default >> queue !! Any idea ? > >> pass in on $ext_if proto tcp to ($ext_if) port ssh keep state queue >> (sshbulkext sshinteractext) >> pass in on $ext_if proto tcp to ($ext_if) port 80 keep state queue >> (httpExtInObsd ExtInAck) >> >> pass out on $ext_if keep state > > pf(4) will work with the *last* matching rule, not the first. (Add > 'quick' to your rules, or reverse the order of the rules.) > > This is actually very useful, but can be confusing the first (couple of) > time(s). > > Joachim
HFSC and SSH bug ?
I try to use HFSC on a gateway to queue packets. SSH packets never go to the right queue, always in the default queue. I test with this little pf.conf on a single interface machine and face the same problem. http packets go to the right queue ssh always to the default queue !! Any idea ? Thanks ext_if="xl0" scrub in log all altq on $ext_if hfsc bandwidth 2000Kb queue { default-Ext-In, sshExtInObsd, httpExtInObsd, ExtInAck } queue default-Ext-In bandwidth 20% hfsc(red linkshare 20% default) priority 1 queue sshExtInObsd bandwidth 10% hfsc(red realtime 100Kb) { sshinteractext, sshbulkext } queue sshinteractext bandwidth 50% priority 7 hfsc(red) queue sshbulkext bandwidth 50% priority 1 hfsc(red) queue httpExtInObsd bandwidth 10% hfsc(red linkshare 10%) queue ExtInAck bandwidth 10% hfsc(red realtime 100Kb) pass quick on lo0 all block in log all pass in on $ext_if proto tcp to ($ext_if) port ssh keep state queue (sshbulkext sshinteractext) pass in on $ext_if proto tcp to ($ext_if) port 80 keep state queue (httpExtInObsd ExtInAck) pass out on $ext_if keep state
Re: symon and 4.0
The package seems to be the same. I tried to install the package from scratch but the sysctl error is still there... On 2006/11/13 10:46, [EMAIL PROTECTED] wrote: > I've got a problem with symon and 4.0 after an upgrade from 3.9. did you upgrade symon to the package from 4.0? I couldn't tell since 3.9 and 4.0 both have the same version number, symon does usually need to be compiled under the OS version you run it on.
symon and 4.0
Hi I've got a problem with symon and 4.0 after an upgrade from 3.9. / # /usr/local/libexec/symon -d symon version 2.72 program id=12178 sending packets to udp 127.0.0.1 2100 started module df(wd0g) started module if(xl0) warning: mbuf() failed (sysctl() Invalid argument) warning: mbuf() failed (sysctl() Invalid argument) warning: mbuf() failed (sysctl() Invalid argument) Any mbuf or sysctl changes in 4.0 ? Thanks for tips
Milter-regex problem
Hi I've got a problem with milter-regex on a _multi-homed_ gateway (OpenBSD 3.9 stable). Milter-regex did not get the "From" "To" and "Subject" here is the milter-regex -d output : Oct 15 15:15:48 mymachine milter-regex[16137]: 1.1.1.1:cb_connect('foo.foo.com', '1.1.1.2') Oct 15 15:15:53 mymachine milter-regex[16137]: 1.1.1.1:cb_helo('foo.foo.com') Oct 15 15:15:53 mymachine milter-regex[16137]: 1.1.1.1:cb_envfrom('<[EMAIL PROTECTED]>') Oct 15 15:15:53 mymachine milter-regex[16137]: 1.1.1.1::ACCEPT, From: , To: , Subject: Oct 15 15:15:56 mymachine milter-regex[16137]: 1.1.1.1: cb_close() /etc/mail/sendmail.cf ... # Input mail filters O InputMailFilters=milter-regex ... Xmilter-regex, S=unix:/var/spool/milter-regex/sock, T=S:30s;R:2m ... /etc/milter-regex.conf #tempfail "Sender IP address not resolving" reject "Sender IP address not resolving" connect /\[.*\]/ // reject "sorry bye" header /^(TO|FROM|SUBJECT)$/ei /test/ /etc/rc.conf.local ... sendmail_flags="-L sm-mta -bd -q30m" ... I use the same configuration files on 3 OpenBSD (single interface) without problem. Any idea ? Thanks