![]() |
|
OpenBSD Security Functionally paranoid! |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hello,
I just dont get it. I have a PF firewall on my DSL connection with 3 internal network interfaces. On one of the internal networks (LNETTR) theres a web server and a smtp server. However; despite redirections and filtering rules it doesn't work. The ports redirected does not open. If I scan myself all ports are still STEALTH. Web surf and any outgoing traffic I allow works perfectly. Any help would be appreciated. Thnx in advance. /U Quote:
Last edited by Dain_L; 24th June 2008 at 12:10 PM. |
|
||||
![]()
Are you testing from inside or outside your network? Be sure to read the relevant section of the pf documentation regarding redirection and reflection (http://www.openbsd.org/faq/pf/rdr.html)
Quote:
__________________
perl -e "eval pack(q{H*}, join q{},qw{7072696e74207061636b28717b482a7d2c717b34393 23036333631366532303666366536633739323036313733373 33735366436353230373936663735323036353738373036353 63337343635363432303734363836393733323037343666323 03632363532303631323036633639373437343663363532303 66436663732363532303635366537343635373237343631363 93665363936653637326530617d293b})" |
|
||||
![]() Code:
# rdr on $ext_if proto tcp from any to ($ext_if) port 80 -> <server ip> port 80 rdr on $ext_if proto tcp from any to ($ext_if) port 25 -> <server ip> port 25 # pass in on $ext_if proto tcp from any to ($ext_if) port 80 synproxy state # <- this rule, as written, will NEVER be true because the rdr re-write has occurred. pass in on $ext_if proto tcp from any to ($ext_if) port 25 # Code:
# rdr on $ext_if inet proto tcp \ from any to ($ext_if) port 80 -> <server ip> port 80 # pass in on $ext_if inet proto tcp \ from any to <server_ip> port 80 synproxy state # Code:
# rdr on $ext_if inet proto tcp \ from any to ($ext_if) port 80 tag OKHTTP -> <server ip> port 80 # pass in on $ext_if inet proto tcp \ tagged OKHTTP synproxy state # pass out on $LNETTR_if inet proto tcp \ tagged OKHTTP keep state #
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience. ![]() Last edited by s2scott; 12th September 2008 at 03:21 AM. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
namp show me a 1720 open port ?? | killa74 | OpenBSD Security | 11 | 11th February 2009 02:55 PM |
Firefox 3 port wont compile : libsoftokn3.so problems | padmanabh | FreeBSD Ports and Packages | 3 | 8th October 2008 07:13 AM |
How to open port 80 on FreeBSD | kapom | FreeBSD General | 14 | 19th June 2008 04:48 AM |
KDE wont start up | dctr | FreeBSD General | 9 | 11th June 2008 05:59 AM |
Why wont this compile? | Johnny2Bad | FreeBSD General | 10 | 19th May 2008 11:30 PM |