Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Slow upload on OBSD 3.3-stable firewall

Status
Not open for further replies.

stef543

Technical User
Nov 16, 2001
4
NL
Hi,
I've got a problem with my upload, my theoratical upload is 512(kilobit p/s)(ADSL). But the upload I get is a maximum of a 100 kilobit/12.5 kilobyte!
I found out when downloading some file from my firewall from my work. When I measured it with some speedtest websites it confirmed a upload of 12 kilobyte. When I directly connect my (bridged mode) ADSL modem to a windows client then I get a correct value of around 55 kilobytes a second!

I already replaced the nic (a Realtek RTL8139C with a Intel 10/100 VM) on the outsite on the firewall, no results. I loosened my pf rules to pass in all pass out all, no result.
I compared the network settings my OBSD is getting from the ISP and my Win2K is getting when connected directly and they were all fine (correct netmask, router,etc). Also the media and mediaopt are set to auto (Ethernet autoselect (100baseTX full-duplex)).

Also I tried recompiling the kernel & system after a cvs-stable download, I thought maybe something is out of sync in kernel/userland, no result.
All hardware on the machine is supported by OBSD.

I also stopped as many services as I could (mail,mysql,etc), no result.

Any ideas?
 
I forgot to mention that I also compiled and booted with GENERIC, without results.
 
I found out it's due to pf.
When I disable pf and upload files to another server the upload I get is about 53 kilobyte p/s and when it's enabled I get an upload of around 12 kilobyte p/s.
Also when pf is enabled with a minimalistic ruleset (see below) the upload fscked up.

ext_if="fxp0" # replace with actual external interface name i.e., dc0
int_if="rl0" # replace with actual internal interface name i.e., dc1
internal_net="10.30.1.0/24"

nat on $ext_if from $internal_net to any -> ($ext_if)

pass in all
pass out all

I've read the pf faq and there's no solution for my problem, unfortunately.
 
Strange problem I apear to have the same upload speed as you though mine is suppossed to be something like that:
512kbit(down) and 128kbit(up) so I thought it was correct like that but always found it anoyingly slow.
 
you mean you're theoratical upload is 512kbit and you get around 12 Kbyte ps?
1289kbit/8bits = 16Kbyte so with a upload around 12kbyte is normal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top