From: sean darcy <seandarcy2@gmail.com>
To: netfilter@vger.kernel.org
Subject: setting up separate route for VOIP
Date: Sat, 15 Nov 2008 12:16:33 -0500 [thread overview]
Message-ID: <gfn05j$hi1$1@ger.gmane.org> (raw)
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
reply other threads:[~2008-11-15 17:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gfn05j$hi1$1@ger.gmane.org' \
--to=seandarcy2@gmail.com \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox