FYI Use IPtables and MAC address instead of Travelin Man?

dhelsten

New Member
Joined
Sep 19, 2011
Messages
3
Reaction score
1
I'm getting ready to set up some phones that will have dynamic IP addresses. I've read about Travelin' Man but am a bit lazy and don't want to pay for and set up FQDNs at dyndns. Isn't it possible to use MAC addresses to whitelist in IPtables? Is there any reason this wouldn't work or would not be advised?
 
As best I recall, MAC addresses aren't routable over the Internet.

If you have an obscure FQDN for your server, you could use something like this in IPtables to permit remote access. Of course, if someone guesses your FQDN, all bets are off. :death:
Code:
-A INPUT -p udp --dport 5060 -m string --string "REGISTER sip:mysecretfqdn.somebody.com" --algo bm -j ACCEPT
-A INPUT -p udp --dport 5060 -m string --string "REGISTER sip:" --algo bm -j DROP
-A INPUT -p udp --dport 5060 -m string --string "OPTIONS sip:" --algo bm -j DROP
-A INPUT -p udp --dport 5060 -j ACCEPT
 
I had a sysadmin tell me he could open and close ports on his sonicwall router on a MAC address basis and I see this article about using MACs with iptables http://tecadmin.net/mac-address-filtering-using-iptables/ It has me intrigued. Perhaps the issue is just that most hardware firewalls don't support it?

I'm going to test out the suggestion in the link above and I'll report if if works.
 
mac addr is link-layer, is for local Lan and won't go past router. Routing in general makes that information unavailable through normal means.

I've often thought of the same kind of thing ie: why not have a giant password instead of having to do a challenge system or VPN. The answer is that by the time you implemented that on the client, server and then did the address translations you'll want to do on the router you might as well just do the VPN. Client phones like the Yealink and others have built in OpenVPN. On the firewall you have lots of options, I use Pfsense with OpenVPN.
 
What I would like to see is a change in Asterisk that would allow you to limit the functionality of port 5060 (or an alternate) in terms of what commands the port would respond to when queried. If that could be constrained you'd probably be able to expose that port. If the communication was not from the LAN you could place all sorts of limitations on both the queries and the calls that could be placed by the non-LAN device.
You could also set up a separate outward facing server that has significant limitations.
 

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top