Civil liberties of service members are limited, not only in that regard. I don't know everything, but I do know that they're not allowed to join in protests. This includes protesting anything, not only protesting against the government or military.

The Uniform Code of Military Justice:
http://www.au.af.mil/au/awc/awcgate/ucmj.htm