![]() |
|
|||||||
| OpenBSD Security Functionally paranoid! |
|
|
Thread Tools | Display Modes |
|
|||
|
Hi,
I m doing some tests with my virtualbox machine. I use a virtual machine with only one interface. (I use OpenBSD 4.6) I try to redirect all webpage to my website. But my rdr pass on... doesnt' work. Perhaps, it works with more than one interface. ? When i do pfctl -nf /etc/pf.conf : no errors i can go to my website, ping works. But redirection doesn't work for example, when i type : lynx www.google.fr, it doesn't send me to my website. can you help me ? here my pf ruleset --------------------- Code:
me="egress:network"
mywebsite="www.mywebsite.com"
set skip on lo
set drop policy drop
match in scrub all (no-df max-mss 1440)
rdr pass on egress proto tcp from $me to ! $mywebsite \
port 80 -> $mywebsite port 80
block log all
pass out on egress proto icmp all icmp-type { echoreq unreach }
pass out on egress proto tcp from $me to $mywebsite port 80
Last edited by Simon; 5th March 2010 at 05:23 PM. Reason: more info |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web interface for rTorrent | Beastie | FreeBSD Ports and Packages | 0 | 24th August 2009 11:53 AM |
| PF rdr pass question | nimnod | FreeBSD General | 2 | 1st May 2009 08:55 PM |
| NAT with only one interface | zapov | General software and network | 4 | 16th February 2009 02:45 AM |
| Redirection | c0mrade | Other BSD and UNIX/UNIX-like | 1 | 11th July 2008 05:19 AM |
| Web interface for pf? | windependence | OpenBSD Security | 4 | 20th May 2008 03:58 AM |