Koozali.org: home of the SME Server

serveronly mode and iptables

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
serveronly mode and iptables
« on: December 07, 2006, 11:11:37 AM »
Hi all

My server is in serveronly mode and when i try to telnet from the internet to port 25 the traffic is denied.  I had a look at the iptables log on the server and it is denying traffice to 25 but allowing traffic to all other ports.

I have changed the default mail port from 25 to 125 because I loaded assp (anti-spam proxy, i dont know spamassassin and worked with assp on sme6 for the last, well ever since i can remember) is there anything i need to change on top of the smtp ports to allow port 25 through?

thanks

kobus
Kobus............

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
serveronly mode and iptables
« Reply #1 on: December 07, 2006, 11:28:46 AM »
and the answer is

How do I allow public access to a service I've added to SME7?
The procedure has changed and is now much simpler in SME7. For this example the service you have installed is called 'manta' and 'nnn' is the TCP port number that needs to be opened. Watch your capitalization with the command below:


  config set manta service access public status enabled TCPPort nnn
For UDP services, use UDPPort instead of TCPPort.
Note that you can also set restrictions with AllowHosts and DenyHosts:


  config setprop manta ~AllowHosts 1.2.3.4,10.11.12.0/24
  config setprop manta ~DenyHosts 16.17.18.18
Then, to activate, do:


  signal-event remoteaccess-update


from
http://no.longer.valid/phpwiki/index.php/SME7FAQs#Firewallx2f.Portx20.Fowardingx2c.Openingx2c.Blocking
Kobus............