Re: sip voip traffic forwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>I would need to of course udp 5061, 10000-20000 forward to asterisk
>server from LinTS eth1,eth0?.
>Would someone be good enough to do a ,,1.,,2.,,3. how to accomplish
>this?

I hope I understand your post the way you meant. If so following
iptables rule on TS may do the job:

iptables -t nat -A PREROUTING -d 192.168.1.2 -p udp --dport 5060:5061 \
-j DNAT --to ASTERISK_ADDR

This would allow connections coming from internet to be redirected to
asterisk box. Rules above may not work in the desired way if you
already have some entries in PREROUTING chain or some of the traffic
is filtered.

Regards,
Marek Kierdelewicz
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux