![]() |
|
|||||||
| OpenBSD Security Functionally paranoid! |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hi
This my first attempt to touch pf.conf .. if there is something foolish please don't be aggressive. Following FAQ 6 , I have : in hostname.wpi0 : Code:
dhcp NONE NONE NONE Code:
up media 10base2 Code:
add wpi0 add bce0 up Code:
pass in quick on bce0 all
pass out quick on bce0 all
block in on wpi0 all
block out on wpi0 all
pass in quick on wpi0 proto tcp from any to any port {22, 80, 21} \
flags S/SA keep state
Thank you very much !! |
|
|||
|
Maybe I should pass udp as well , to allow dhcp ..
|
|
|||
|
|
|
||||
|
ocicat, that's from daemonfowl blindly copying and pasting from FAQ 6.9, without comprehension. Only NIC names were changed.
The bce(4) NIC and the bmtphy(4) PHY do not have 10Base2 Ethernet media adapters. --- The PF configuration shown is identical to the FAQ's -- except for the addition of the FTP control port 21. There is no ftp-proxy, nor passing of a range of ports for data connections. daemonfowl, FTP is a complex protocol; so complex it has its very own chapter in the PF User's Guide. What you have posted will not work for FTP.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Quote:
I've changed that line .. 'up' is enough so it will use autoselect (defaults) .. but if you deem simplication is better I may do without the bridge. There was a contribution by oko , an example of a working pf.conf that maybe I can elaborate on to meet my needs and my needs for a box are : http/ftp/ssh/ plus being able to use p2p (amule & bitorrent) Here is oko's sample pf.conf : Code:
ext_if="rl0"
tcp_services = "{ssh, imaps, smtp, 587, domain, ntp, www, https}"
udp_services= "{domain, ntp}"
set skip on lo
set loginterface $ext_if
scrub in all random-id fragment reassemble
block return in log all
block out all
antispoof quick for $ext_if
pass out quick on $ext_if proto tcp to any port $tcp_services
pass out quick on $ext_if proto udp to any port $udp_services
|
|
||||
|
Quote:
Quote:
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Rather, disappointed.
daemonfowl, you will find in the OpenBSD community very little sympathy for those who simply cut-&-paste others work having little to no comprehension of what it does. Quote:
|
|
|||
|
I agree that copy/paste is not the right way to learn
I see those examples as starting points for me to first *start* walking .. at this moment I ned to set my still immature pf.conf to allow p2p ? Do I have to first learn about p2p and tcp ip to start using pf.conf ?? OpenBSD is a shoreless sea as is Unix .. how can I use it to serve me this ? at this time ? As to learning it is and must be a life process but every mortal has their own tempo/rhythm/ pace .. I believe myself to have the slowest .. and yet I'm not psychologically ( :-) ) ready to stop using a great OS just because it's hard for me .. that's it. (There are lots of people -I'm sure- who are having the same -if not worse- issue but abstain from exposing it here or there :-) not to be ridiculed .. well only the shy and the boastful who wouldn't learn a thing ) |
|
|||
|
Yet, we see evidence of it again & again with you...
Quote:
|
|
||||
|
Quote:
Quote:
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
And for fans of dead trees, the following is the best book I have read on the general theory of TCP/IP:
http://www.amazon.com/Routing-TCP-Vo...rds=jeff+doyle
|
|
||||
|
Here is someone who "manages" what he does not understand. Do you want to be like him?
![]() Do you truly wish to make network decisions in ignorance? You could harm more than your own systems. An improperly configured network is a network which may be open to attack, and could be used as a vector to launch attacks on other networks. You may not care about your own systems. But you should be a responsible Internet citizen and not -- through willful ignorance -- cause problems for others.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| is this a correct attitude ? | daemonfowl | OpenBSD General | 6 | 28th March 2012 08:31 PM |
| sysctl.conf settings not loading on boot | Kuboaa | FreeBSD General | 2 | 18th November 2010 07:35 AM |
| Correct tag for ports & docs | vigol | FreeBSD Ports and Packages | 1 | 6th December 2009 01:06 PM |
| Network settings | guitarscn | OpenBSD General | 13 | 18th February 2009 12:45 AM |
| Problem loading (the correct) libX11.so.6 | phreud | FreeBSD General | 3 | 10th November 2008 10:13 AM |