Привет ВСЕМ
Стоит FreeBSD 6.2p3 + mpd4.1+ipfw+squid2.6+pf (для ната)Беру Дебиан и пускаю её через этот сервер через pfnat -
#apt-get update
Err http://ftp.ro.debian.org stable Release.gpg
Временная ошибка при попытке получить IP адрес 'ftp.ro.debian.org'
....
Не удалось загрузить http://ftp.freenet.de/debian/dists/stable/Release.gpg Временная ошибка при попытке получить IP адрес 'ftp.freenet.de'
Пускаю все это дело через squid - работает
Дальше у занатченых клиентво - не все страницы с первого раза открываются...
Дальше больше - на самом Сервере не мог устанавливать из портов - не качалось...
ipfw show:
00001 0 0 deny ip from table(1) to me dst-port 22,2000-2010
00004 4892 637355 fwd 127.0.0.1,3128 tcp from 192.168.0.0/16 to not 10.0.0.0/8 dst-port 80,8080,8100,3128,8000,8800
01920 1847 1562481 pipe 1920 ip from not 10.0.0.0/8,192.168.0.0/16 to 192.168.11.144
64997 0 0 reject tcp from any to any not established tcpflags fin
64997 0 0 reject tcp from any to any tcpflags syn,fin,ack,psh,rst,urg
64997 0 0 reject tcp from any to any tcpflags !syn,!fin,!ack,!psh,!rst,!urg
64999 32201284 11507237364 allow ip from any to any layer2
65000 42006235 16298462730 allow ip from any to any
65535 408 31420 deny ip from any to any
cat /etc/pf.conf | grep -v '#'
webports = "{ http, https }"
email = "{ smtp, pop3, imap, imaps, pop3s }"
scrub in all fragment reassemble
set skip on lo0
rdr on $ext_if proto tcp from any to any port $email -> $emailserver
nat on $ext_if from <inat> to any -> $ext_ip
pass in on $ext_if proto tcp from any to $emailserver port $email \
flags S/SA synproxy state
pass out on $ext_if proto tcp from $emailserver to any port smtp \
flags S/SA synproxy state
pass all
-----------
scrub in all fragment reassemble - включал, выключал...
Все ип-ки подставлены...