[CentOS] CentOS 6.5 equivalents in CentOS 7

Thu Oct 30 14:34:50 UTC 2014
Toby Bluhm <Toby.Bluhm at alltechmedusa.com>

On 10/30/2014 10:20 AM, Always Learning wrote:
>
> On Thu, 2014-10-30 at 10:01 -0400, Toby Bluhm wrote:
>
>> On 10/30/2014 8:38 AM, Marko Vojinovic wrote:
>
>>>      iptables -I INPUT -p tcp --dport 80 -j ACCEPT
>>>
>>> and
>>>
>>>      firewall-cmd --add-service=http
>
>> To do this in cmd line on Windows:
>>
>> netsh advfirewall firewall add rule name=httpd dir=in \
>> localport=80 protocol=tcp enable=yes \
>> profile=private,domain \
>> remoteip=192.168.1.1,192.168.2.1 action=allow
>
> Ugh. Very unappealing. I am so happy to be on Centos 5 and 6. :-)
>
> How does one modify that Windoze rule ? In IPtables,
>
>   -R 4web 5 -p tcp --dport 888 -s 192.168.2.1/23 -j ACCEPT
>
>

netsh advfirewall firewall set rule name="sshd" \
new remoteip=192.168.1.1/23


Different? - Yes
Difficult? - No more than anything else I'm unfamiliar with