That depends on what you mean.
If you want to firewall it, use iptables.
If you want the firewall rules created automagically, use something like Portsentry.
If you want to terminate an existing connection, you'll need to locate what program is running that is using that connection and terminate it. lsof, netstat, ps, etc etc etc...