Thanks Zenny and Simon,
I'm running quite few Asterisk setups where the machine has got only
Asterisk and it's part of an environment where another machine runs
Shorewall, and I do not have any problem, whether with the VoIP telephones
on the local LAN or TSP coming from the outside world.
I believe with the configuration I've described the issue has got more to do
with what Asterisk does in term of binding when Shorewall is active and the
changes Shorewall has induced on the network on activation.
In fact even with the both NIC cards present, the issue disappears as soon
as Shorewall is disabled.
From: Costantino [mailto:[email protected]]
Sent: 28 February 2012 08:31
To: Shorewall Users (Mailing List for Shorewall Users)
Subject: [Shorewall-users] shorewall + asterisk
I have a box with two NIC cards where I've installed Asterisk and Shorewall
(the attached diagram can be best viewed when fonts is set to Courier New).
The issue is that no phone is able to register with ASTERISK.
When I enable SIP debugging in ASTERISK (SIP SET DEBUG IP <phone-IP>) no
packets are displayed, whereas monitoring the NIC card with WireShark shows
that
the VoIP phone is sending REGISTER requests to Asterisk that ASTERISK
doesn't answer.
It looks to me as if ASTERISK doesn't listen at all on the LAN addresses,
while it answers all those requests coming from the corporate LAN that
are allowed by the SHOREWALL rules to go through.
There is no difference in ASTERISK behaviour whether the LOCALNET and
EXTERNIP
lines are present or not in its SIP configuration file.
Has anybody in this community had experience with such configuration who can
provide me with hints on how to fix it?
Thanks.
---------------------
+-----------+
| A |
ph1 ph4 | S S W |
tele- | | eth0 | T H A | eth1 | | corporate
phones --+-+-+-+-------+ E O L +------+---+-+--+-+--
LAN | | | R R L | | | | LAN
ph2 phX | I E |
| X |
+-----------+
Networking
----------
telephones LAN = 192.168.153.0/24 eth0 = 192.168.153.1
corporate LAN = 10.0.23.0/24 eth1 = 10.0.23.29 gateway = 10.0.23.1
Shorewall: 3.4.6-1
Telephony
---------
Asterisk: asterisk-1.4.36-0
file: /etc/asterisk/sip_general_custom.conf
localnet=192.168.153.0/255.255.255.0
externip=10.0.23.29
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users