Letting FTP out through PF with a default block all

2009-05-26 Thread Andres Salazar
Hello, Before posting I acklowedge I have read the FAQ.. based on that this is my PF config: t_externa = re0 set block-policy drop set loginterface $t_externa set limit states 10 set limit frags 30 set limit src-nodes 5 set optimization aggressive set skip on lo0 set debug urgent

Letting FTP out through PF with a default block all

2009-05-26 Thread Andres Salazar
Hello, Before posting I acknowledge I have read the FAQ.. based on that this is my PF config: t_externa = re0 set block-policy drop set loginterface $t_externa set limit states 10 set limit frags 30 set limit src-nodes 5 set optimization aggressive set skip on lo0 set debug urgent

Re: Letting FTP out through PF with a default block all

2009-05-29 Thread Andres Salazar
access to the outside!! So at the end, anybody can share if they have gotten to work fto-proxy with block all? Thanks Andres On Tue, May 26, 2009 at 5:51 PM, Andres Salazar ndrsslz...@gmail.comwrote: Hello, Before posting I acknowledge I have read the FAQ.. based on that this is my PF config

Best supported Asterisk interface for OpenBSD?

2009-05-29 Thread Andres Salazar
I would like to ask the OBSD community if someone can recommend me a good supported interface for Asterisk on OBSD. I have heard that FreePBX is really a pain to configure because it assumes a linux environment. Please anybody share their experience? Thank you. Andres

What kernel to use for a QuadProcesor, or Dual Xeon 3.0ghz

2009-07-10 Thread Andres Salazar
Hello community, I have two boxes: Quad Core Processor with 4GB RAM Dual Xeon 3.0 Ghz with 2GB of RAM I have heard contradicting information as far as I can use both the MP and the REGULAR kernel (i386 or amd64) and that both would give me the same performance.. Isnt it true that If i apply

Re: What kernel to use for a QuadProcesor, or Dual Xeon 3.0ghz

2009-07-11 Thread Andres Salazar
On Sat, Jul 11, 2009 at 1:54 AM, Jan-Erik Skata jesk...@gmail.com wrote Yes, you should use the SMP kernel on multicore CPUs aswell. I have usually just moved /bsd.mp onto /bsd and rebooted. Otherwise only one CPU and/or core will be used. Ok, however since this is Symmetric MultiProcessing

Nagios package incomplete? Anybody got it working? OBSD 4.5

2009-07-21 Thread Andres Salazar
Hello, Iam using OBSD 4.5, and i tried to install Nagios nagios-3.0.6p1 (also tried nagios-3.0.6p1-chroot) from packages.. and Ive noticed that after the install the WebGUI files are missing and there is no instruction whatsoever if one should need to get these from somewhere else..? (the faq on

PF: 3 NICS. 1 WAN, 2 LAN. How to manage each LAN open ports individually?

2009-07-25 Thread Andres Salazar
Hello OpenBSD-misc, I have a newbie question in pf that Ive been trying to debug on what would be wrong with my ruleset. Iam trying to have the users that are on $int_if only have ports 80 52 opened out, and users on $int_if be able to have less restrictions and more ports out. So far I have

Re: PF: 3 NICS. 1 WAN, 2 LAN. How to manage each LAN open ports individually?

2009-07-26 Thread Andres Salazar
I apologize that my ruleset isnt very clear. Iam trying to put together a ruleset that will allow the following access: Outbound port 80 (web) 53 (domain) from users at $int_if via $ext_if Outbound port 80 (web) 53 (domain) 443 (ssl) 22 (ssh) from $int_if2 via $ext_if Thank you for the help.

Re: PF: 3 NICS. 1 WAN, 2 LAN. How to manage each LAN open ports individually?

2009-07-26 Thread Andres Salazar
conflict with the rules and NAT, as the firewall once the packets are NATed then it doesnt recognize the real source? Iam confused. Thank you Andres On Sun, Jul 26, 2009 at 1:16 AM, Jason Dixon ja...@dixongroup.net wrote: On Sun, Jul 26, 2009 at 12:58:08AM -0500, Andres Salazar wrote: I apologize

Re: PF: 3 NICS. 1 WAN, 2 LAN. How to manage each LAN open ports individually?

2009-07-26 Thread Andres Salazar
allowing it for both $int_if and $int_if2 , thus the following port restriction rules are not getting evaluated. Full ruleset is here: http://pastebin.com/d3f292c50 Andres On Sun, Jul 26, 2009 at 12:32 PM, Jason Dixon ja...@dixongroup.net wrote: On Sun, Jul 26, 2009 at 12:14:53PM -0500, Andres

Re: PF: 3 NICS. 1 WAN, 2 LAN. How to manage each LAN open ports individually?

2009-07-26 Thread Andres Salazar
appreciated. Andres On Sun, Jul 26, 2009 at 1:05 AM, patrick keshishianpkesh...@gmail.com wrote: On Sat, Jul 25, 2009 at 9:23 PM, Jason Dixonja...@dixongroup.net wrote: On Sat, Jul 25, 2009 at 09:41:45PM -0500, Andres Salazar wrote: Hello OpenBSD-misc, I have a newbie question in pf that Ive been

Re: PF: 3 NICS. 1 WAN, 2 LAN. How to manage each LAN open ports individually?

2009-07-28 Thread Andres Salazar
is the traffic actually going in? pass in on $int_if2 inet proto udp from $int_if2:network to any \ port 53 Thank you. Andres On Sun, Jul 26, 2009 at 6:36 PM, Jason Dixonja...@dixongroup.net wrote: On Sun, Jul 26, 2009 at 01:16:02PM -0500, Andres Salazar wrote: Hello Jason, I understood

How to activate extensions after compiling php5 core and extensions? No instructions!

2009-08-05 Thread Andres Salazar
Hello, OpenBSD 4.5 stable I have done the following: cd /usr/ports/www/php5/core; make; make install; cd /usr/ports/www/php5/extensions; make; make intall; That according to pkg_info installed: php5-core-5.2.10server-side HTML-embedded scripting language php5-extensions-5.2.10

Re: How to activate extensions after compiling php5 core and extensions? No instructions!

2009-08-06 Thread Andres Salazar
Aaaron, I suppose that according to the Makefile for the extensions all of them should be enabled. I also suppose that the correct extension_dir path for the modules to be placed would be: /var/www/lib/php/modules However, this isnt the case... where do I get the modules from to activate them

Intermittent Segmentation fault (11) with new port updates for Compilation of apache-httpd-2.2.11 and php5.2.10 . Bug??

2009-08-09 Thread Andres Salazar
Hello, Environment: OpenBSD 4.5 stable , generic MP kernel. Dmesg here: http://pastebin.com/m5f5e96fe Summary: We have a special need to use Apache 2 with PHP5 and before the ports where updated from php5.2.6 and apache 2.2.9 this procedure worked 100% before and now even in a new install just

apache1.3 without jail and PHP cannot execute some system binaries..why?

2009-08-14 Thread Andres Salazar
Hello, I have a script that is being called from the web , it invokes the system() function and I try to test running some system commands to see if they are properly invoked. Apache is running without jail (-d) due to special needs. mv and cp do not display any output (this do not execute),

Re: apache1.3 without jail and PHP cannot execute some system binaries..why?

2009-08-14 Thread Andres Salazar
Yes, iam sorry typo I meant i disabled chroot with -u i went over the php.ini and there is nothing listed in disable_functions Please advise. thanks

Re: apache1.3 without jail and PHP cannot execute some system binaries..why?

2009-08-14 Thread Andres Salazar
I have also tried using the user www and executing the script.. it works fine.. It just doesnt work via the web. On Fri, Aug 14, 2009 at 11:04 AM, Andres Salazarndrsslz...@gmail.com wrote: Yes, iam sorry typo I meant i disabled chroot with -u i went over the php.ini and there is nothing

Re: apache1.3 without jail and PHP cannot execute some system binaries..why?

2009-08-14 Thread Andres Salazar
ls -la /bin pretty much says that the permissions and ownership are the same for mv, cp, cat, ls I dont think its a permission/ownerhsip issue. Please advise. On Fri, Aug 14, 2009 at 11:18 AM,# ls -la total 14192 drwxr-xr-x 2 root wheel1024 Aug 4 11:58 . drwxr-xr-x 14 root wheel

Boxes hanging intermittently. Anybody seen such ?

2009-08-16 Thread Andres Salazar
Hello, During the past week two boxes two boxes on the same network have stopped responding, they carry OpenBSD 4.5 i386 and I have logged at every possible log to find out why this occurs however I havent been able to spot anything unusual. All of the sudden they just stop responding requests.

KVM macros and OpenBSD

2009-08-28 Thread Andres Salazar
Hello, Iam sure other people have run into the same dilemma whereas some macros dont work on a KVM Brands tested: Lantronix SLS / Raritan dominion KX2 232 Macros are being received by the system as you can do the ctrl alt f2 macro which changes the current terminal - this works. I do not know

applying errata vrs building userland from source

2009-09-16 Thread Andres Salazar
Hello, What is the best practice when building a new machine, or why would one prefer one aside from the other: a.) Compile kernel and userland from a recent -stable src checkout or b.) Apply all the errata from http://www.openbsd.org/errata45.html ? Both are equivalent is this correct? Thank

PF simple rdr help?

2009-10-07 Thread Andres Salazar
Hello guys, I have the following rules .. iam trying to put the IP of the PF box into the browser and have it get the page thats on 208.99.249.95. When I do that the connection just hangs and doesnt give me any content. cat /etc/pf.conf ## Macros ## TABLES ## GLOBAL OPTIONS ## TRAFFIC

Re: PF simple rdr help?

2009-10-07 Thread Andres Salazar
Dorian, Thank you. I take it for granted that match is for 4.6 . Thats fine. What is the difference passing it onto netcat, then doing it directly? Aside from this I also need to redirect a range of ports (1500-2000).. and I think the issue would get more difficult if i do it with this method..

nfe0: tx v2 error 6204UNDERFLOW

2009-10-09 Thread Andres Salazar
Hello all, I have three machines that have a integrated NIC. Dmesg says they are : nfe0 at pci0 dev 7 function 0 NVIDIA MCP61 LAN rev 0xa2: apic 2 int 10 (irq 10), address 00:0f:ea:63:41:fd rlphy0 at nfe0 phy 1: RTL8201L 10/100 PHY, rev. 1 However, all of them when a download is initiated

PF:. Possible to loadbalance connectiity of a LAN to different gateways per IP?

2009-10-14 Thread Andres Salazar
Hey guys, I know it is possible to route an interface to another gateway via route-to. But what If I want to loadbalance specific IPs to specific gateways in my box? Is this possible? Thank you --Andres

About priorities in /etc/resolv.conf

2009-10-28 Thread Andres Salazar
Hello, I have experienced that even though I set up 3 servers in /etc/resolv.conf , if the first one gets slow apparently it will not utilize the others untill it is completely down. Is there anyway to actually force the OS to pick another resolver if one of them is very slow? Thank you Andres

Anyway to force IP to be assigned only if MAC matches?

2009-10-28 Thread Andres Salazar
Hello, I Have dhcp enabled on my LAN which assigns an IP according to the clients MAC address, however if a user wanted to be malicious he can statically assign any IP to his NIC. Isnt there anyway I can force my ARP tables to only allow IPs to be assigned if the MAC address matches? Thanks

PF: Help with a very simple bandwidth capping using hfsc

2009-12-09 Thread Andres Salazar
Hello, For some reason I cannot get this to work properly... We have a 1Megabyte/sec connection, and I want this box to be capped at up to 200KiloBytes/sec . However everytime I try, it just always ends up using the entire link. If I modify it to 1Kb , it ends up using around 80Kilobytes/sec .

Re: PF: Help with a very simple bandwidth capping using hfsc

2009-12-09 Thread Andres Salazar
Hello, In this case the queue bulk is the one set as default and indeed I do see the traffic passing through it with the command you gave me. Please advise. Thanks Andres

Re: PF: Help with a very simple bandwidth capping using hfsc

2009-12-09 Thread Andres Salazar
upperlimit 40Kb) queue bulk bandwidth 80% priority 1 qlimit 500 hfsc (realtime 120Kb upperlimit 120Kb default) But I still cannot accomplish what I need. Andres On Wed, Dec 9, 2009 at 2:01 PM, Bryan S. Leaman lea...@bitbytes.com wrote: Andres Salazar wrote: Hello, For some reason I cannot

Re: PF: Help with a very simple bandwidth capping using hfsc

2009-12-09 Thread Andres Salazar
I just tried on a new install in 4.5, and still no go. Help is appreciated.

Encrypt entire filesystem with AES 256bit. Softraid tutorial?

2009-12-18 Thread Andres Salazar
Hello, Iam looking for ways to encrypt my entire filesystem, but it must be with AES 256bits... Ive bene searching and I deduce that the only option I have is using softraid, however iam unable to find any tutorial or guide. Anybody know if this is possible, if I have any other option (with 256

newbie help with PF. block all, then allowing port 22 doesnt work.

2010-04-21 Thread Andres Salazar
Hello all. I have a ruleset where iam explicitly allowing incoming connections on port 22.. (default is block log all) .. for some weird reason they are getting blocked log says: Apr 21 17:09:49.105052 rule 1/(match) block in on fxp0: my.client.ip.here.54711 my.server.ip.here.22: S

Re: newbie help with PF. block all, then allowing port 22 doesnt work.

2010-04-22 Thread Andres Salazar
Hello, Yes it loaded properly. Yes I had missied the macro for the external NIC it is included in the original ruleset. t_externa = fxp0 This is the result for pfctl -sr: match in all scrub (no-df) block drop all pass out all flags S/SA keep state pass out quick on fxp0 inet proto tcp from

Re: newbie help with PF. block all, then allowing port 22 doesnt work.

2010-04-22 Thread Andres Salazar
logging on specific rules and see why they're blocking as well if that doesn't fix your issue. Andres Salazar wrote: Hello, Yes it loaded properly. Yes I had missied the macro for the external NIC it is included in the original ruleset. t_externa = fxp0 This is the result for pfctl -sr

possible to configure PF to simulate latency and 1% packet loss?

2010-01-22 Thread Andres Salazar
Hello, Is it possible to do some rule in pf to simulate 300ms of latency? This is for testing purposes. A plus would be to simulate 1% packet loss. Many Thanks!!

Broadcom NetXtreme II BCM5716 1000Base-T being recognized with bnx instead of bge.. is that OK?

2010-02-18 Thread Andres Salazar
Greetings. I have a R210 DELL with a built in Broadcom NetXtreme II BCM5716 1000Base-T being recognized with bnx instead of bge .. iam having problems starting the network within the OPenBSD 4.6 installer. I noticed that the manual for bge says: The bge driver provides support for various NICs

slow IO on PowerEdge R210 QUAD-CORE X3460 2.8GHz 4gb of RAM tested in AHCI ATA mode.

2010-02-23 Thread Andres Salazar
Hello, I have 2 SATA drives without an additional SATA controller on this box. I have tried this in ATA Mode, and also in AHCI mode. Disk reads are 50% higher. Userland compilation takes 55min when the usual on other similar hardware is 35 min. Could somebody check my dmesg and comment? It

Re: slow IO on PowerEdge R210 QUAD-CORE X3460 2.8GHz 4gb of RAM tested in AHCI ATA mode.

2010-02-23 Thread Andres Salazar
Why would that be , Marco? What special about this hardware? On Tue, Feb 23, 2010 at 10:15 AM, Marco Peereboom sl...@peereboom.us wrote: You need -current to have a fighting chance with that server. On Tue, Feb 23, 2010 at 09:10:45AM -0600, Andres Salazar wrote: Hello, I have 2 SATA drives

Slow IO in PowerEdge R200 X3330 2.66Ghz 2x3MB Cache.

2010-02-23 Thread Andres Salazar
Hello, I had a R201 running in 4.6 i386 stable..I was told this configuration was very new.. so I got a new box this time its a PowerEdge is R200 without any special PCI SATA controller. With 2 SATA II Hard Disks. BIOS Sata setting is set to be in ATA Mode (its either this or OFF). Either after

Re: Slow IO in PowerEdge R200 X3330 2.66Ghz 2x3MB Cache.

2010-02-23 Thread Andres Salazar
at 3:36 PM, Marco Peereboom sl...@peereboom.us wrote: Your disks are still wd so io sucks. Use -current. On Tue, Feb 23, 2010 at 03:22:28PM -0600, Andres Salazar wrote: Hello, I had a R201 running in 4.6 i386 stable..I was told this configuration was very new.. so I got a new box this time

Average time for compiling userland? == benchmarking CPU/IO? best result for database hosting?

2010-02-28 Thread Andres Salazar
Hello, Iam confused on the different result I get when I compile userland on any machine better then a Dual Core 2.5Ghz 2GB RAM 160GB 7200 SATA / SATA ii On some machines I get a compile time of 45min, other machines 30min.. and the best of the case I get 30min. Sometimes that machine that

Re: Average time for compiling userland? == benchmarking CPU/IO? best result for database hosting?

2010-02-28 Thread Andres Salazar
On Sun, Feb 28, 2010 at 11:10 AM, Bret S. Lambert bret.lamb...@gmail.com wrote: Iam going to use these machines for database and Iam very concerned about these results Honestly, you'd do better asking that on a list dedicated to whatever database you're going to be running. In addition to

Re: Average time for compiling userland? == benchmarking CPU/IO? best result for database hosting?

2010-03-01 Thread Andres Salazar
Hello, I dont have obj on ram, or /tmp . Iam using make build. Thank you Andres On Mon, Mar 1, 2010 at 5:48 AM, Marc Espie es...@nerim.net wrote: On Sun, Feb 28, 2010 at 11:02:37AM -0600, Andres Salazar wrote: Hello, Iam confused on the different result I get when I compile userland

possible relayd bug? intermittent SSL handshake errors SSL3_GET_FINISHED:digest check failed) , SSL3_GET_RECORD:decryption failed or bad record mac)

2010-03-04 Thread Andres Salazar
Hello, I have a very simple relayd config: ## Macros # relayd_addr=xx.xx.xx.xx relayd_port=81 web_port=80 table web_hosts { xx.xx.xx.xx } ## Global Options # # Interval in seconds at which the back-end hosts # will be checked (default: 10 seconds) interval 10 # Timeout for back-end servers

Newbie - Identifying IO bottlenick with systat. How to make sense of these numbers?

2010-03-22 Thread Andres Salazar
Hello.. Iam trying to use systat for identifying if when my applications/db runs there is an IO bottleneck. Linux systat shows more info and it seems there are more examples on the net.. but even though with BSDs iostat i dont know how to make sense of all these numbers. I ran it this way: