From: sean darcy <seandarcy2@gmail.com>
To: netfilter@vger.kernel.org
Subject: can't port forward on multihome
Date: Fri, 19 Dec 2008 15:38:27 -0500 [thread overview]
Message-ID: <gih0o4$45n$1@ger.gmane.org> (raw)
I have a multihomed server: eth0 is a static T1, and eth3 is a Verizon
dsl line. I want eth3 as the default for general traffic, and eth0 for
VOIP traffic.
eth1 is the internal interface. eth3 works fine as the masquerade out
for NAT'd lan.
I've used ip to set up eth0 so I can ssh into it:
## eth0 is static
ETH0_IP_ADDR=www.xxx.yyy.zzz
ip rule add from $ETH0_IP_ADDR/32 table 128 priority 128
## this is the route through the gateway ip
ip route add default via <eth0 gateway ip> table 128
and that works. Which is important since that's the static address; the
Verizon dsl address is dynamic.
The VOIP server ( asterisk ) is on the lan. I've tried to port forward
ssh to the voip server:
$IPT -t nat -A PREROUTING -p tcp --dport 2280 -j DNAT --to 10.10.10.180:22
$IPT -A FORWARD -p tcp --dport 22 -m state --state NEW -d 10.10.10.180
-j ACCEPT
This works if I ssh to the eth3, the dynamic dsl interface:
ssh -p 2280 voip@<dsl ip address>
I get an ssh session on the voip server.
But:
ssh -p 2280 voip@<static ip address>
doesn't work. But I need to have others access the voip server using a
static ip, but not give them access to the multihomed server.
AFAICT, the ssh on the voip server never sees anything ( at LogLevel
DEBUG1 ) if I try over the static interface.
I assume I need some additional ip magic, but I'm clueless as to what's
needed.
Thanks for any help.
sean
next reply other threads:[~2008-12-19 20:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-19 20:38 sean darcy [this message]
2008-12-20 11:06 ` can't port forward on multihome Pascal Hambourg
2008-12-28 20:53 ` sean darcy
2008-12-28 21:35 ` sean darcy
2008-12-29 11:24 ` Pascal Hambourg
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='gih0o4$45n$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