Changes

From SME Server
Jump to navigationJump to search
1,059 bytes added ,  21:02, 9 April 2014
Line 699: Line 699:  
  /sbin/e-smith/config delete popfile
 
  /sbin/e-smith/config delete popfile
 
  /sbin/e-smith/signal-event remoteaccess-update
 
  /sbin/e-smith/signal-event remoteaccess-update
 +
 +
====Create a service with db command and set network access====
 +
[[DB_Variables_Configuration#Additional_information_on_customizing_iptables]]
 +
Create a custom-named service definition in the configuration database.
 +
 +
db configuration set <servicename> service
 +
 +
Apply your desired firewall restrictions to any existing SME 'service' or to a custom-named service that you have created. Combine a custom-named service with port-forwarding to create customized firewall rules.
 +
 +
db configuration setprop <servicename> TCPPort <portnumber>
 +
db configuration setprop <servicename> TCPPorts <portnumbers>
 +
db configuration setprop <servicename> UDPPort <portnumber>
 +
db configuration setprop <servicename> UDPPorts <portnumbers>
 +
db configuration setprop <servicename> status enabled|disabled
 +
db configuration setprop <servicename> access public|private
 +
db configuration setprop <servicename> AllowHosts a.b.c.d,x.y.z.0/24
 +
db configuration setprop <servicename> DenyHosts e.f.g.h,l.m.n.0/24
 +
 +
Effectuate the changes you have made
 +
signal-event remoteaccess-update
    
==Squid Cache==
 
==Squid Cache==

Navigation menu