Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Michael Kolomiets                    2:5020/400     15 Jul 2004  12:24:50
 To : All
 Subject : pppoe и natd rules из rc.firewall
 -------------------------------------------------------------------------------- 
 
 Привет!
 Внешний канал ADSL с поптоп, поднят натд с флагами
 natd_program="/sbin/natd"
 natd_interface="tun0"
 natd_flags="-u -m -dynamic -s"
 
 в rc.firewall:
         oif="tun0"
 ...
         case ${natd_enable} in
         [Yy][Ee][Ss])
                 if [ -n "${natd_interface}" ]; then
                         ${fwcmd} add divert natd tcp from any to any via
 ${natd_interface} established
                         divert natd icmp from any to any in recv
 ${natd_interface} icmptype 0,3,4,8,11,12
                         divert natd icmp from any to any out xmit
 ${natd_interface} icmptype 0,3,8,12
                         divert natd udp from any to any 33434-33700 out xmit
 ${natd_interface}
                         divert natd tcp from 192.168.21.1 to any 25 out xmit
 ${natd_interface} setup
                 fi
                 ;;
         esac
 ...
 в результате ipfw li дает следующее:
 01800 divert 8668 tcp from any to any via tun0 established
 и все :(
 Чего я ему не так сказал? Ткните, ПЛЗ.
 --
 С уважением, Михаил.
 --- ifmail v.2.15dev5.3
  * Origin: Global Ukraine free NNTP site (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 pppoe и natd rules из rc.firewall   Michael Kolomiets   15 Jul 2004 12:24:50 
 Re: pppoe и natd rules из rc.firewall   Valentin Nechayev   15 Jul 2004 12:49:59 
 Re: pppoe и natd rules из rc.firewall   Michael Kolomiets   15 Jul 2004 12:59:52 
Архивное /ru.unix.bsd/6436fd69dab5.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional