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

Re:multiple Cisco ATA188's behind a NAT; they can call out but can't call in




sday, 02.02.2005 at 09:10 -0800, Gerard J. Cerchio wrote:

Greetings all,

I have multiple Cisco ATA 188 phone adapters behind a Debian Woody 2.4 kernel acting as a NAT to a single Internet IP address.

The phones all make outgoing calls just fine. The incoming calls cannot get through.

Does anyone have an iptables NAT script that will allow the phones to work both ways?

Here are my current entries:

  iptables -t nat -A POSTROUTING -s $MASQ_NET -o $EXT -j MASQUERADE

iptables -t nat -A PREROUTING -d $EXTIP -p tcp --dport 16384 -j DNAT --to-dest 10.10.0.12:16384 iptables -t nat -A PREROUTING -d $EXTIP -p udp --dport 16384 -j DNAT --to-dest 10.10.0.12:16384 iptables -A FORWARD -i eth0 -p udp -d 10.10.0.12 --dport 16384 -j ACCEPT iptables -A FORWARD -i eth0 -p tcp -d 10.10.0.12 --dport 16384 -j ACCEPT

where 16384 is the media port on the ATA188 (there is a set for each ATA188)
the -FORWARD's don't seem to do anything


Can you tell us what $MASQ_NET and $EXT refer to?  Which interface is
eth0? etc.

Dave.

  Hi Dave,

MASQ_NET is 10.10.0.0/24 - this is the internal NAT'd network on eth1 $EXT - is the eth0 adapter that is using $EXT_IP on the public network $INT - is eth1 the internal 10.10.0.0/24 network

Thanks






Reply to: