nightfly 1,250 Posted 2010-02-19 15:47:39 Share Posted 2010-02-19 15:47:39 Не перекидає на потрібну сторінку А шо у вас клієнти ходять по портах 8080 аби їх завертати? Інтерфейс доречі варто би вписати. Link to post Share on other sites
morfey 82 Posted 2010-02-19 15:51:53 Author Share Posted 2010-02-19 15:51:53 вірніше во: ipfw add 50 fwd HOST_WITH_MESSAGE,8080 ip from CLIENT_IP to not HOST_WITH_MESSAGE dst-port 80 via em0 Може forward не призначений для цього... Задача, коли в абонента нема на рахунку то при переході на будь який сайт він попадає на сторінку з потрібним повідомленням Link to post Share on other sites
nightfly 1,250 Posted 2010-02-19 16:05:45 Share Posted 2010-02-19 16:05:45 Може forward не призначений для цього... fwd | forward ipaddr | tablearg[,port] Change the next-hop on matching packets to ipaddr, which can be an IP address or a host name. The next hop can also be supplied by the last table looked up for the packet by using the tablearg keyword instead of an explicit address. The search terminates if this rule matches. If ipaddr is a local address, then matching packets will be for- warded to port (or the port number in the packet if one is not specified in the rule) on the local machine. ...... To enable fwd a custom kernel needs to be compiled with the option options IPFIREWALL_FORWARD. Link to post Share on other sites
morfey 82 Posted 2010-02-19 16:14:22 Author Share Posted 2010-02-19 16:14:22 ipfw show показує, що пакети бігають по цьому правилу, але на потрібну мені сторінку не редіректить мана The fwd action does not change the contents of the packet at all. option options IPFIREWALL_FORWARD. є Задача, коли в абонента нема на рахунку то при переході на будь який сайт він попадає на сторінку з потрібним повідомленням як? Link to post Share on other sites
nightfly 1,250 Posted 2010-02-19 16:32:34 Share Posted 2010-02-19 16:32:34 Завернути всіх неактивних абонентів форвардом в відповідний екземпляр апача. Ми сійо вже давно не використовуємо з певних причин, але в свій час нормально воркало методом fwd/ Памятається правда там якась підступна муть була при обробці табличок і одиночних хостів, правда не памятаю як вирішилось - спробуйте спочатку для /32 чи шо. Link to post Share on other sites
morfey 82 Posted 2010-02-19 16:39:42 Author Share Posted 2010-02-19 16:39:42 ну не виходить... Є якийсь приклад робочий в когось? Link to post Share on other sites
nightfly 1,250 Posted 2010-02-19 16:42:28 Share Posted 2010-02-19 16:42:28 і одиничний хост теж? Оо Link to post Share on other sites
morfey 82 Posted 2010-02-19 16:46:03 Author Share Posted 2010-02-19 16:46:03 00090 20 5655 fwd 127.0.0.1,8080 ip from 10.10.10.12 to not 127.0.0.1 dst-port 80 via em0 Я бачите пакети бігають при переході, але як заходив на host:80 так там і залишився Link to post Share on other sites
nightfly 1,250 Posted 2010-02-19 16:50:32 Share Posted 2010-02-19 16:50:32 http://local.com.ua/forum/topic/19513-ipfw-forward/ От на такі граблі я наступав свого часу. Для одиничного хоста работало желєзно. Памятається там ше був такий неприємний ефект шо після форварда пакет переставав бачитись дампом. Link to post Share on other sites
morfey 82 Posted 2010-02-19 17:03:30 Author Share Posted 2010-02-19 17:03:30 блін.. я натупив трохи Забув шлюз вказати до якого конекчусь так от, форвардить 00090 fwd 127.0.0.1,8080 ip from 10.10.10.12 to not me via em0 тільки кидає на 80 порт а не 8080 ~ солвед, настройки апача коряві були Невірю, що розібрався Всім дякую!!! Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now