أبو زيد | 2 Jan 2009 04:14
Picon

authpf rdr work but weird

dear all,

I have my authpf declared on my pf.conf. I have two proxy port, 3129 and
8000.
some users redirected to port 8000, while others port 3129 when they start
browsing port 80.
Port 3129 on squid, while 8000 on dansguardian.

On the first 2 and 3 users rdr works fine. but after sometime only a single
proxy got hit. either 3129 or 8000.

below is my sample of /etc/authpf/users/ley/authpf.rules

*IF_ext="tun0"
IF_int="fxp0"

nat on $IF_ext from <authpf_users> to any -> ($IF_ext)
#rdr on $IF_int inet proto tcp from <authpf_users> to any port 80 ->
127.0.0.1 port 3129
rdr pass on $IF_int proto tcp from <authpf_users> to any port 80 ->
127.0.0.1 port 8000

pass in log quick on $IF_int proto tcp from <authpf_users> to any flags S/SA
modulate state
pass in quick on $IF_int proto udp from <authpf_users> to any keep state
*

I'm waiting for someone to advice :).

(Continue reading)

Damon McMahon | 2 Jan 2009 04:18
Picon

Strange WLAN issue with ral(4) in hostap mode

Greetings,

Ever since I installed my MSI-PC54G2 ral(4) PCI card in my OpenBSD 4.3
i386 box running in HostAP mode I've had a weird connectivity issue.
Put simply, connectivity with laptops is very iffy, but desktops are
fine. Symptoms are that connectivity FROM the access point TO the node
is very suspect - ping(8) loses on average 70-80% of packets.
Strangely ping in the other direction is fine. So this manifests
itself in "Web 1.0" connectivity such as news sites, slashdot etc.
being relatively unaffected - as is IMAP, SMTP, etc. - but Web 2.0
connectivity such as Facebook, Gmail, etc. experiences constant
timeouts and is generally unusable.

This seems to affect laptops more then desktops. Running my previous
model Macbook Pro off mains power resolves the issue (but not when
running on batteries) however a friend's current model Macbook suffers
regardless whether it is running off mains or batteries. An iMac G4
and AMD-powered Windows XP machine seem unaffected.

I have replaced the standard antenna with a high-gain antenna which
had some effect on the desktops but not on the laptops.

The only other potentially relevant point I can think to note is that
the AP machine (an old PIII running at 500 Mhz) is PCI 2.1 compliant
(according to the dmesg) whereas the PCI card documentation says it is
PCI 2.2 compliant - could the motherboard's older PCI bus simply not
be up to the job?

I'm out of ideas, otherwise... I'm considering purchasing an ASUS
WL-130N but if the issue is likely the PCI bus rather than the WLAN
(Continue reading)

Jussi Peltola | 2 Jan 2009 04:45

Re: Strange WLAN issue with ral(4) in hostap mode

Disable power saving on the clients. 

أبو زيد | 2 Jan 2009 04:58
Picon

authpf rdr work but weird

dear all,

I have my authpf declared on my pf.conf. I have two proxy port, 3129 and
8000.
some users redirected to port 8000, while others to port 3129 when they
start browsing port 80.
Port 3129 on squid, while 8000 on dansguardian.

On the first 2 and 3 users rdr works fine. but after sometime with to many
hits ONLY a single proxy got hit. either 3129 or 8000.

below is my sample of /etc/authpf/users/ley/authpf.rules

*IF_ext="tun0"
IF_int="fxp0"

nat on $IF_ext from <authpf_users> to any -> ($IF_ext)
#rdr on $IF_int inet proto tcp from <authpf_users> to any port 80 ->
127.0.0.1 port 3129
rdr pass on $IF_int proto tcp from <authpf_users> to any port 80 ->
127.0.0.1 port 8000

pass in log quick on $IF_int proto tcp from <authpf_users> to any flags S/SA
modulate state
pass in quick on $IF_int proto udp from <authpf_users> to any keep state
*

I'm waiting for someone to advice :).

(Continue reading)

Wu, Li | 2 Jan 2009 08:13
Favicon

question about the openbsd USB host

I am doing a project currently which requires porting the openbsd 4.3
usb host stack and ohci driver to our embedded system, I have ported the
source code but got problems when I tested it.

I found I am having problems to initialize the USB host, for example, I
am not sure how to call the ohci_init or usb_init, there are parameters
in these two init functions, such as "ohci_softc_t *sc", my problem is
that these so-called init parameters are not init correctly, which
means, there are so many pointers in the "ohci_softc_t *sc", I always
got crash when some pointers are used, such as "p->align = align" or
some other source code to defer the parameters.

So my question is, in order to port the OpenBSD 4.3 USB host stack and
ohci driver, where is the entry point and how should I do the
initialization?

Many thanks.

Regards,
    Li

Laurens Vets | 2 Jan 2009 12:44
Picon

FreeBSD emulation of VMware Tools

Hi list,

I'm trying to get the FreeBSD version of the VMware Tools installed in 
OpenBSD 4.4 under VMware Server 2.0 following the guide posted at 
http://www.openbsd-wiki.org/index.php?title=HowTo_install_VMWare_tools.

I've had to install the freebsd_lib-4.11p0.tgz package and had to add 
some additional symbolic links to /emul/freebsd/usr/lib.  However, 
vmware-guestd segfaults upon trying to start it:

# ktrace /emul/freebsd/sbin/vmware-guestd --background 
/var/run/vmware-guestd.pid --halt-command "/sbin/shutdown -p -h now"
Segmentation fault (core dumped)
# ktrace -C
# kdump
   6020 ktrace   RET   ktrace 0
   6020 ktrace   CALL  execve(0xcfbdabb3,0xcfbdaa60,0xcfbdaa78)
   6020 ktrace   NAMI  "/emul/freebsd/sbin/vmware-guestd"
   6020 ktrace   NAMI  "/emul/freebsd/usr/lib/libc.so.1"
   6020 ktrace   NAMI  "/emul/freebsd"
   6020 vmware-guestd NAMI  "/emul/freebsd/usr/lib/libc.so.1"
   6020 vmware-guestd EMUL  "freebsd"
   6020 vmware-guestd RET   execve 0
   6020 vmware-guestd PSIG  SIGSEGV SIG_DFL code 1 addr=0x85fa8 trapno=1
   6020 vmware-guestd NAMI  "vmware-guestd.core"
#

I'm not sure how to proceed from here.  Can anyone help me further?

Thanks in advance!
(Continue reading)

Duncan Patton a Campbell | 2 Jan 2009 13:13
Picon
Favicon

Re: Strange WLAN issue with ral(4) in hostap mode

On Fri, 2 Jan 2009 05:45:45 +0200
Jussi Peltola <pelzi <at> pelzi.net> wrote:

> Disable power saving on the clients. 
> 
> 

'zat it?

Dhu

Marian Hettwer | 2 Jan 2009 15:36
Picon
Favicon

use 3 nics as hub / switch

Hi All and a happy new year,

got a short question here.
I'm building a home router from a blue box (embedded pc), which has 3 nics
(rl0, 1, 2).
Internet drops in via dhcp client on rl0. Now I got 2 NICs left and I'd
like to use them similar like a hub. Just use a cross over cable and plug
in 2 more devices which can then talk through that router.

My first try was to bridge rl1 and rl2, but then again, I want to use a
dhcp server on both interfaces and it seems like I can't do that, since I
can't give an ip on bridge0 and I wouldn't want to give an IP to rl1 and
rl2.

Any ideas to that setup?
I thought about giving rl1 an IP adress and rl2 one from another network.
Like rl1 with 192.168.1 and rl2 with 192.168.2 and then run dhcpd on rl1
and rl2 serving both subnets.
However, that doesn't look like a good approach to me.

Any other thoughts on that issue?

Ah yes, it's OpenBSD 4.4 release :)

best regards,
Marian

PS.: please CC me, I'm not subscribed to the list.

(Continue reading)

Nicolas Legrand | 2 Jan 2009 15:41
Picon

diff for xenocara' README.macppc

Hey,

the iBookHacks option shouldn't be in the sample xorg.conf since it is
not used anymore :

<http://www.openbsd.org/faq/upgrade44.html#newXdrivers>

bye,

-- nicolas

Index: README.macppc
===================================================================
RCS file: /cvs/openbsd/xenocara/distrib/notes/README.macppc,v
retrieving revision 1.4
diff -u -r1.4 README.macppc
--- README.macppc       31 Aug 2008 07:33:29 -0000      1.4
+++ README.macppc       2 Jan 2009 14:37:44 -0000
 <at>  <at>  -81,8 +81,8  <at>  <at> 
 #      These options are required for use on the Ti PBG4.
 #      Option      "PanelWidth"  "1152"
 #      Option      "PanelHeight" "768"
-#      This option may help if your iBook or Mac mini has screen sync problems
-#      Option      "iBookHacks" "on"
+#      This option enable quirks for specified Mac model, details in Radeon(4)
+#      Option "MacModel" "ibook"

 EndSection

(Continue reading)

Randal L. Schwartz | 2 Jan 2009 16:56
Favicon
Gravatar

Re: ftp from script

>>>>> "Daniel" == Daniel A Ramaley <daniel.ramaley <at> drake.edu> writes:

Daniel>     chdir "/path-to-dir";

You didn't check the success of the chdir.  This will ruin your original
current directory if that fails...

Daniel>     unlink <*>;

Oops!

The proper solution is rmtree, a function defined in File::Path:

  use File::Path;
  rmtree('/path-to-dir');

--

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn <at> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


Gmane