Jump to content

Recommended Posts

Posted

Не запускаеться natd при запуске ПК (отсутствует в top).

А также ipfw не подхвтывает скрипты (/etc/rc.firewall)

Шлюз работает только после комманд

#natd -interface rl0

#ipfw add divert natd from any to any via rl0

 

rc.conf фрагмент:

hostname="BSD.domain.lv"

gateway_enable="YES"

 

tcp_extensions="NO"

tcp_drop_synfin="YES"

 

sshd_enable="YES"

usbd_enable="NO"

 

ifconfig_fxp0="inet 192.168.1.1 netmask 255.255.255.0"

ifconfig_rl0="DHCP"

 

firewall_enablle="YES"

firewall_script="/etc/rc.firewall"

 

natd_enable="YES"

natd_interface="rl0"

natd_flags=""

 

/etc/rc.firewall

#!/bin/sh

/sbin/ipfw -f flush

/sbin/ipfw add 1 pass all from any to any via lo0

/sbin/ipfw add 2 deny all from any to 127.0.0.0/8

/sbin/ipfw add 20 divert natd from any to any via rl0

 

Вот что добавлял в ядро:

options IPFIREWALL

options IPDIVERT

options IPFIREWALL_VERBOSE

options IPFIREWALL_VERBOSE_LIMIT=100

options IPFIREWALL_FORWARD

options IPFIREWALL_DEFAULT_TO_ACCEPT

options TCP_DROP_SYNFIN

options DUMMYNET

 

Подскажите где проблема?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.