* setting up separate route for VOIP
@ 2008-11-15 17:16 sean darcy
0 siblings, 0 replies; only message in thread
From: sean darcy @ 2008-11-15 17:16 UTC (permalink / raw)
To: netfilter
My server NAT's an internal asterisk VOIP server. That works, but we're
trying to use a separate dsl connection for VOIP.
eth0 : internal LAN
eth1 : default internet
eth3 : VOIP connection ( DHCP)
The VOIP traffic is SIP and IAX, but for now I'm just trying to set up
IAX, which uses port 4569 for all traffic.
I've manually edited /etc/iproute2/rt_tables:
cat rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
180 voip
and created this script:
# manually set up table 180 in /etc/iproute2/rt_tables
# for any iax packets that come in set fwmark to 180
/sbin/iptables -t mangle -A PREROUTING -s 10.10.10.180 -p udp --dport
4569 -j MARK --set-mark 180
# any packets with fwmark 180 are routed through table 180
/sbin/ip rule add fwmark 180 table 180
# this should send out the voip packets over eth3
/sbin/ip route add dev eth3 table 180
Will this mess up the NAT? Anything else to look out for?
sean
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-15 17:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-15 17:16 setting up separate route for VOIP sean darcy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.