This Question is Not Answered

1 "correct" answer available (5 pts) 1 "helpful" answer available (1 pts)
8 Replies Last post: Mar 20, 2010 12:15 PM by mparadis  
Click to view mparadis's profile   95 posts since
Oct 2, 2009

Nov 18, 2009 11:32 AM

OpenSBC on ?


It's clear that opensbc works well with vyatta but I am wondering what other firewall it might work on/with.

In my case, I need nothing but SIP/RTP, I don't need the full functions of a firewall as all other services are provided through a different connection.

I don't know if opensbc can be installed and run safely on say just a standard centos server for example or if it replies on certain things which only a firewall such as vyatta for example offers.

Some insight on this would be most appreciated.

Thanks.

Mike

Click to view tayeb.meftah's profile   5 posts since
Nov 12, 2009
1. Nov 18, 2009 3:29 PM in response to: mparadis
Re: OpenSBC on ?

hi,

OpenSBC can by i,nstalled in Win32, Linux including Debian/UBUNTU, CentOs and other Operating System, like *BSD

also i hop that OpenSBC can to by ported to any ARM Platform and blackfin;)

enjoi OpenSBC the reliable Open Source SBC/Sip Proxy

Click to view nate187's profile   27 posts since
Sep 29, 2009
4. Jan 19, 2010 12:14 PM in response to: mparadis
Re: OpenSBC on ?
Here are some basic rules you can use. You can make a file /etc/rc.d/rc.firewall and have /etc/rc.d/rc.local run it so its loaded at boot.
This is pretty basic but better than no security at all, and you can do much much more with iptables.

iptables -A INPUT -s 10.0.0.2 -j ACCEPT
This will allow everything from that address. Specify your own ip or network, so you can ssh to it and specify your sip proxies so it can receive sip packets on the other ports like the backdoor, trunk, etc.

# Flush all Chains.
iptables -F INPUT
iptables -F FORWARD
iptables -F OUTPUT
 
# Set default Policy for each Chain.
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
 
# Rules
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT
iptables -A INPUT -s 10.0.0.2 -j ACCEPT
iptables -A INPUT -p udp -m multiport --dports 6000:65534 -j ACCEPT
iptables -A INPUT -p udp -m multiport --dports 5060 -j ACCEPT
Click to view joegen's profile   519 posts since
Apr 28, 2007
6. Jan 20, 2010 9:08 PM in response to: mparadis
Re: OpenSBC on ?

Gentlemen,

When you get something working, would you document your setup and post it in the docs area?

Click to view nate187's profile   27 posts since
Sep 29, 2009
7. Jan 21, 2010 9:04 AM in response to: mparadis
Re: OpenSBC on ?
for NAT you need something like this where eth0 is the public and eth1 is the private:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT