Re: need howto for SELinux config--ssh on non-standard port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Poelstra wrote:
> I'm running sshd on a high (>1024) port number and cannot find a
> clear step by step guide for configuring this correctly on Fedora 12
> on google.... I've come across lots of random bugs and forum
> questions, but nothing that starts at the beginning of the process
> through the end.

Simplest way:

 * run system-config-selinux;
 * click on Network Port;
 * look up the SELinux Port Type for port 22 (the normal SSH port); 
 * click on add;
 * enter the appropriate port number and SELinux Type.

If you want a command line equivalent, then try 
semanage port -a -t ssh_port_t -p tcp 344
(I haven’t tried this one, but it’s only lightly modified from the
semanage man page).

Hope this helps,

James.

-- 
E-mail:     james@ | Bond films are about seducing beautiful girls, gadgets,
aprilcottage.co.uk | and defeating supervillains who never seem to learn that
                   | the way to deal with James Bond is simply to shoot him.
                   |     -- Professor Steven Dutch
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux