HI,
Based on the above post by Stunted, I am running 8.09.1 and I have to install iptables-mod-nat-extra to get ipt_REDIRECT.ko installed so the "REDIRECT" will work. I don't have to creat /etc/siproxd.conf as existing siproxd.conf under /var/run..... seems working fine.
(https://dev.openwrt.org/browser/trunk/package/iptables/Makefile?rev=12649 (define Package/iptables-mod-nat-extra/description
173 iptables extensions for extra NAT targets.
174 Includes:
175 - REDIRECT)
for the firewall config,
***from /etc/firewall.user
# transparently redirect SIP traffic to siproxd
iptables -t nat -A prerouting_rule -p udp -i br-lan --dport 5060 -j REDIRECT
**from /etc/config/firewall
config rule
option src wan
option src_dport 5060
option target ACCEPT
option protocol udp
config rule
option src wan
option src_dport 7070-7089
option target ACCEPT
option protocol udp
root@WRT_CAN:~# uname -a
Linux WRT_CAN 2.6.25.20 #4 Mon Jun 1 23:39:13 UTC 2009 mips unknown.
BTW,
I was trying to use new firewall configuration method to achieve "iptables -t nat -A prerouting_rule -p udp -i br-lan --dport 5060 -j REDIRECT" and not do this in /etc/firewall.user, but doesn't work.
config in /etc/config/firewall:
config redirect
option src lan
option src_dport 5060
option target REDIRECT
Does anyone know whether this is confired wrong or it can't be accieved in /etc/config/firewall, but only achieved in /etc/firewall.user. ?
thanks
thanks
Peng
(Last edited by peng on 5 Sep 2009, 23:18)