Read any of the dozens of internet connection sharing guides, posts or articles here on TS or anywhere on the net.
As for security, what do you mean by "not seen"? In any case, you can block anything with pinpoint accuracy using a decent software firewall.