Changes

From SME Server
Jump to navigationJump to search
500 bytes added ,  12:04, 30 July 2009
command to remove specified entry only added
Line 107: Line 107:  
  expand-template /etc/rc.d/init.d/masq
 
  expand-template /etc/rc.d/init.d/masq
 
  /etc/init.d/masq restart
 
  /etc/init.d/masq restart
 +
 +
To remove a specific entry but leave other existing entries unchanged
 +
config setprop squid BypassProxyFrom $(config getprop squid BypassProxyFrom | sed -e 's/entry-to-be-removed//' -e 's/^,//' -e 's/,$//' -e 's/,,//')
 +
 +
where entry-to-be-removed is the IP to be removed
 +
 +
Note: The first sed is to remove the entry, the last second is to remove the comma at the beginning, the second for a comma at the end and the last to remove the double comma when an entry is removed at the middle of the list.
 +
    
Disable bypass:  
 
Disable bypass:  
624

edits

Navigation menu