Jump to content

Recommended Posts

Posted

Шлюз под FreeBSD 6.3, настроен шейпер и приоритеты dummynet. Шлюз также должен пропускать через себя минуя dummynet локальный трафик между подсетями. skipto в этом случае будет работать?

Например,

 

ipfw add 24 skipto 65450 ip from 192.168.114.0/24,192.168.115.0/24 to 192.168.114.0/24,192.168.115.0/24 via nve0

 

ipfw add 28 queue 11 ip from "table(90)" to not me out

ipfw add 29 queue 21 ip from "table(50)" to not me out

ipfw add 30 queue 31 ip from "table(1)" to not me out

 

ipfw add 40 divert natd all from any to any via em0

 

ipfw pipe 3 config bw 30Mbit/s

ipfw queue 1 config pipe 3 weight 50 mask dst-ip 0xffffffff

ipfw queue 11 config pipe 3 weight 50 mask src-ip 0xffffffff

ipfw queue 2 config pipe 3 weight 40 mask dst-ip 0xffffffff

ipfw queue 21 config pipe 3 weight 40 mask src-ip 0xffffffff

ipfw queue 3 config pipe 3 weight 10 mask dst-ip 0xffffffff

ipfw queue 31 config pipe 3 weight 10 mask src-ip 0xffffffff

 

ipfw add 80 queue 1 ip from not me to "table(90)" in

ipfw add 82 queue 2 ip from not me to "table(50)" in

ipfw add 84 queue 3 ip from not me to "table(1)" in

 

ipfw add 65450 allow ip from 192.168.114.0/24,192.168.115.0/24,195.69.86.136/29

to 192.168.114.0/24,192.168.115.0/24,195.69.86.136/29 via nve0

 

В таблах айпи юзеров 192.168.114.0/24 и 192.168.115.0/24

Posted
работать allow, без всяких skipto, и не нумеруйте
Точно )

ЗЫ

Однако после allow пакеты разве вылетят из файрволла и не попадут в queue ежели стоит net.inet.ip.fw.one_pass=0 ?

 

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 и с Политикой конфиденциальности.