Короче сделал я, как ты сказал
Вот мой rc.conf
# -- sysinstall generated deltas -- # Fri Apr 5 18:56:57 2002
# Created: Fri Apr 5 18:56:57 2002
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
kern_securelevel_enable="NO"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
firewall_enabled="YES"
firewall_script="/etc/fwscript"
---
А вот /etc/fwscript:
my_ISPs_DNS = ns.tomsknet.ru
ipfw add allow tcp from any to any via tun0 establishe
ipfw add allow tcp from me to any via tun0 setup
ipfw add allow log icmp from any to any
ipfw add allow udp from me to $my_ISPs_DNS 53 via tun0
ipfw add allow udp from $my_ISPs_DNS to me via tun0
ipfw add allow ip from any to any via lo0
ipfw add deny log ip from any to any
---
После всего этого и reboot:
# ipfw sh
65535 44 3748 allow ip from any to any
# nslokkup*Can't find server name for address 217.106.32.254: Timed out.*Can't find server name for address 217.106.32.254: Timed out.*Default servers are not available.
---
Таже самая хЫня :(( Кстати вот какие я опции в ядро включил:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPDIVERT
options TCP_DROP_SYNFIN
---
прям обидно, когда так делаешь, делаешь, а она тебе Fuck! И всё :((
|