[CentOS] Inquiry:iptables ?

Sat Oct 31 22:06:22 UTC 2009
Christoph Maser <cmr at financial.com>

Am Samstag, den 31.10.2009, 08:48 +0100 schrieb hadi motamedi:
> Dear All
> To open a port , I know that I need to go to "System -> Administration
> -> Security Level and Firewall" -> Other ports and then I can open
> port-5901 as tcp protocol . Can you please do me favor and let me know
> how it can be done from the command line (if my CentOS is text-mode
> installed) ? (perhaps via iptables?)
> Let me thank you in advance
>

system-config-securitylevel-tui -q -p $port:$proto

eg for HTTP

system-config-securitylevel-tui -q -p 80:tcp


financial.com AG

Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553