I don't recommend creating a dedicated server based off your personal internet. Not only will this give you "host advantage" but it would cause major lag to the players on that server.
If however, you still want to go through with your server, you need to be sure that your ports are open, so that your friends may connect. TCP/UDP Protocols = 27015
Configure your firewall to allow hl2.exe on both public and private connections.
Once you've opened up your server through your ports and configured everything that's needed, now it's time to make it online.
Open up your developer console, this key: (`) right below the Esc. button. (To enable the console, go to options, keyboard, advanced, and enable it.)
Now type in:
sv_lan 0
ip [your ip address] Make sure it's your public ip, not your personal one.
heartbeat
There you go!
(Devs, if you find an error, please tell me, or edit it! Thanks!)