ports="{20 21 22 25 53 80 110 143 443 514 3306 8080}"set block-policy return
set skip on lo0scrub in all
rdr on de0 inet proto tcp to port 80 -> 10.0.0.3 port 3128
block all
pass out all
pass in on de0 proto {tcp, udp} to port $portsРебятули, почему сие не работает?
> ports="(... 22 ...Да, 22 обязательно оставь, и ssh туда повесь, и рута разреши и пароль 12345678
>> ports="(... 22 ...
> Да, 22 обязательно оставь, и ssh туда повесь, и рута разреши и
> пароль 12345678Какой ты молодец. Твоя подсказка решила мои проблемы.
from <source> port <source> to <dest> port <dest>Обозначь to <dest>
а нет, не то.
Чего говорит pfctl -nvf /etc/pf.conf ?
> а нет, не то.
> Чего говорит pfctl -nvf /etc/pf.conf ?ports = "{20 21 22 25 53 80 110 143 443 514 3306 8080}"
set skip on { lo0 }
scrub in all fragment reassemble
rdr on de0 inet proto tcp from any to any port = http -> 10.0.0.3 port 3128
block drop all
pass out all flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = ftp-data flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = ftp flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = ssh flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = smtp flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = domain flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = http flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = pop3 flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = imap flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = https flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = shell flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = mysql flags S/SA keep state
pass in quick on de0 proto tcp from any to any port = 8080 flags S/SA keep state
pass in quick on de0 proto udp from any to any port = ftp-data keep state
pass in quick on de0 proto udp from any to any port = ftp keep state
pass in quick on de0 proto udp from any to any port = ssh keep state
pass in quick on de0 proto udp from any to any port = smtp keep state
pass in quick on de0 proto udp from any to any port = domain keep state
pass in quick on de0 proto udp from any to any port = http keep state
pass in quick on de0 proto udp from any to any port = pop3 keep state
pass in quick on de0 proto udp from any to any port = imap keep state
pass in quick on de0 proto udp from any to any port = https keep state
pass in quick on de0 proto udp from any to any port = syslog keep state
pass in quick on de0 proto udp from any to any port = mysql keep state
pass in quick on de0 proto udp from any to any port = 8080 keep state
Хм, а чего не работает?
В смысле, чего должно получиться в результате?
> Хм, а чего не работает?
> В смысле, чего должно получиться в результате?Все, спасибо, я тупой, не открыл 3128 порт.