Koozali.org: home of the SME Server

Firewall - is there a GUI front end for SME

Offline nicolasdiogo

  • **
  • 22
  • +0/-0
Firewall - is there a GUI front end for SME
« on: October 02, 2007, 01:50:48 PM »
hi

just find out if there is some front end for the firewall (iptables)
in the forum there a number of posts and howtos asking explaining how to use the firewall.
it seems that it is only possible to amend the firewall via command-line.

many thanks

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Firewall - is there a GUI front end for SME
« Reply #1 on: October 02, 2007, 02:16:50 PM »
There is no GUI for changing firewall settings, nor has there ever been.

What are you looking to do?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Firewall - is there a GUI front end for SME
« Reply #2 on: October 02, 2007, 02:59:20 PM »
nicolasdiogo

The GUI server manager has a number of panels that directly affect firewall rules.
There are also numerous command line "db commands" that directly affect firewall rules.
Just look at the forum posts of the last two days re blocking, AllowHosts & DenyHosts, also read the Developers Guide, FAQ & Wiki for additional info.

It really depends on what you want to do, as to which approach you take to make the changes.
ie it would be counterproductive (and possibly a security issue) to write special iptables rules when there is a db command or a server manager panel that can make the change you want.

What do you want to do ?
...

Offline nicolasdiogo

  • **
  • 22
  • +0/-0
Re: Firewall - is there a GUI front end for SME
« Reply #3 on: October 02, 2007, 04:31:45 PM »
thanks,

i am looking to redirect traffic for certain ports to particular local IP.
allow traffic for a certain port for only one desktop.

is there plans to create a front end for the firewall?

regards

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Firewall - is there a GUI front end for SME
« Reply #4 on: October 02, 2007, 04:44:04 PM »
Quote
i am looking to redirect traffic for certain ports to particular local IP.
This is already in the GUI under server-manager::Security::Port Forwarding

Quote
allow traffic for a certain port for only one desktop.
If this is different than the previous item then I don't understand what you're trying to say?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Firewall - is there a GUI front end for SME
« Reply #5 on: October 02, 2007, 05:34:21 PM »
is there plans to create a front end for the firewall?

There is a front end for the firewall - it is the server manager, which has various policy settings and panels which affect the firewall.

There are no plans to have two different front ends.

Offline okepc

  • ****
  • 118
  • +0/-0
    • http://www.okepc.nl
Re: Firewall - is there a GUI front end for SME
« Reply #6 on: October 03, 2007, 10:07:39 AM »
Byte said
Quote
nor has there ever been

You are misinformed take a look at:

Masq Manager

http://www.muzo.homeip.net/wiki.php/SmeServer/Contribs

This wil PROBABLY NOT WORK with sme7 cause it is written for sme6

Regards

Dirk

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Firewall - is there a GUI front end for SME
« Reply #7 on: October 03, 2007, 10:30:28 AM »
Byte said
You are misinformed take a look at:

Masq Manager

Misinformed ? I don't think so, thats bad advice to suggest something thats not even compatible with sme7, even when that package was compatible with sme6 it didn't work properly.

Quote
http://www.muzo.homeip.net/wiki.php/SmeServer/Contribs

This wil PROBABLY NOT WORK with sme7 cause it is written for sme6

So why even suggest this package in the first place if you say it will probably not work ? Bad advice again, have you even tried this package on sme7 ?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Firewall - is there a GUI front end for SME
« Reply #8 on: October 03, 2007, 11:58:43 AM »
Hi everyone. Maybe it wasn't a good advice to talk about the masq manager contrib, I never tried it. But I think a advanced firewall configuration tool would be a good thing. Even if there's no panel in the server-manager. I know we can already open some ports, and forward others but a lot of things are missing (IMHO) like:
- limit a port forwarding to a range of source addresses
- Forward port for both tcp and udp in a single rule
- Possibility to comment each forwarding rules
- possibility to forward a port range
- support others interfaces than Internal and External, this could be great for site-to-site VPN, or a DMZ, or a WiFi device
- Support forwarding rules between the different network if there are more than 2 interfaces
- possibility to disable NAT with a db key
- Block all the outgoing ports traffic (excluding an admin IP range) and allow just those we want
- Add some protection against ssh scan at least (it seams to be possible with simple iptables rules, but I haven't tested)
- Add shaping rules (the script from hancees based on HTB works great, I think it should be added in the base)

Something like the BOT (BlockOutTraffic) on ipcop would be cool, I know SME is not designed to be a complex firewall, but for small installations, it would be usefull to have some advanced firewall options, even for personnal use (I have a SME at home, and I'd need a third interface to connect a WiFi device and capture the traffic with chillispot. I'd even need a 4th interface for a site-to-site VPN with openvpn, and I don't want to disable the firewall on this interface like some people does, I'd just like to open some ports.)

I've started looking at the masq script, but implementing those functionnality needs a total rewrite (I think), and such a thing won't be integrated in the distro. That's why I haven't open bugs as NFR. I know it represent a lot of work, but these functionnality are really missing.

That was my advice
C'est la fin du monde !!! :lol:

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Firewall - is there a GUI front end for SME
« Reply #9 on: October 03, 2007, 12:49:32 PM »
VIP-ire

> ...I haven't open bugs as NFR. I know it represent a lot of work, but these functionnality are really missing.

Well if you think the OS needs the functionality, you should open NFR bugs, at least then your requests will be considered by the developers. If enough people ask, and the developers agree, and they have resources or are sponsored, then it may happen.
...

Offline jdavey

  • ***
  • 43
  • +0/-0
Re: Firewall - is there a GUI front end for SME
« Reply #10 on: October 03, 2007, 09:05:12 PM »

Quote
VIP-ire said:
- limit a port forwarding to a range of source addresses
- Forward port for both tcp and udp in a single rule
- Possibility to comment each forwarding rules
- possibility to forward a port range
- support others interfaces than Internal and External, this could be great for site-to-site VPN, or a DMZ, or a WiFi device
- Support forwarding rules between the different network if there are more than 2 interfaces
- possibility to disable NAT with a db key
- Block all the outgoing ports traffic (excluding an admin IP range) and allow just those we want
- Add some protection against ssh scan at least (it seams to be possible with simple iptables rules, but I haven't tested)
- Add shaping rules (the script from hancees based on HTB works great, I think it should be added in the base)

Something like the BOT (BlockOutTraffic) on ipcop would be cool, I know SME is not designed to be a complex firewall, but for small installations, it would be usefull to have some advanced firewall options, even for personnal use (I have a SME at home, and I'd need a third interface to connect a WiFi device and capture the traffic with chillispot. I'd even need a 4th interface for a site-to-site VPN with openvpn, and I don't want to disable the firewall on this interface like some people does, I'd just like to open some ports.)

VIP-ire said it - use IP Cop or Smoothwall (or m0n0wall). As elegant and simple a solution as SME is, I've never been confortable with the server functioning as the gateway / firewall, it just seems... dirty. That said, I've never had a problem for the few folks I've helped out with SME as a firewall. It's just that Smoothwall / IP Cop and m0n0wall are so configurable out of the box. Why take a chance on breaking security on the SME (which ambitious folks tend to do when modifying).

If it's a small installation then typically they don't need advanced routing and customized firewall rules. Additionally, it's a pain to support those changes when something goes wrong (and it will go wrong). If they do need those features then it's really not a small installation. With Smoothwall, IPCop or m0n0wall if you break it, it's a ten minute reinstall from ISO and you're done.
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Firewall - is there a GUI front end for SME
« Reply #11 on: October 03, 2007, 09:23:50 PM »
VIP-ire said it ...

Ray also said it - if something should be there and isn't, open a New Feature Request in the Bug Tracker.

BTW, quite a few of the features that VIP-ire advocates already exist.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Firewall - is there a GUI front end for SME
« Reply #12 on: October 03, 2007, 10:03:45 PM »
Ok, I'll try to open bugs for the features I've listed.
I know that if I want just a firewall, I should use ipcop, and for some installation, I use ipcop. But SME has a lot of features, and just a few are missing (still IMHO), and I'd like to have everything in one machine as it will save energy and money.

Quote
If it's a small installation then typically they don't need  advanced routing and customized firewall rules
I install SME for some small company, and I'd need the advanced functionality. I can live without it, but it'd be much better with.

Quote
BTW, quite a few of the features that VIP-ire advocates already exist.
Maybe I've missed something, can you point me to some documentation on the features I'd like which exists?
C'est la fin du monde !!! :lol:

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Firewall - is there a GUI front end for SME
« Reply #13 on: October 03, 2007, 10:16:27 PM »
I install SME for some small company, and I'd need the advanced functionality.

So pay someone to develop the functionality you need ...

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Firewall - is there a GUI front end for SME
« Reply #14 on: October 03, 2007, 10:28:00 PM »
Well, I'm just a young tech, I don't have lot of money and I try to do what I can to enhance this already great OS. I though giving some ideas could help but sadly it seems they are not very welcome without money
C'est la fin du monde !!! :lol: