Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Firewall
(view source)
Revision as of 12:04, 30 July 2009
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:
RayMitchell
624
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search