tcp

How do I check network connections under Linux using command line options?

{ 8 comments }

Q. I’d like to change ssh port from 22 to 2346. I changes the ssh port and reloaded OpenSSH but didn’t get through my firewall. I’m using APF firewall script under cPanel control panel? How do I open port 2346? A. By default APF configured via /etc/apf/conf.apf file. All you have to do is login […]

{ 3 comments }

Q. Can you explain the difference between UDP and TCP internet protocol (IP) traffic and its usage with an example? A. Transmission Control Protocol (TCP) and User Datagram Protocol (UDP)is a transportation protocol that is one of the core protocols of the Internet protocol suite. Both TCP and UDP work at transport layer TCP/IP model […]

{ 95 comments }

Q. I am running SSH/MySQL/Webserver and setup iptables based firewall. But my logs are send to console rather than the system log files. How do make sure that iptables LOG target messages are send to /var/log/messages file? A. IPTABLES LOG module turns on kernel logging of matching packets. When this option is set for a […]

{ 3 comments }