by GJ51 » Mon Nov 22, 2010 10:04 am
Read your router's documentation. A Static NAT just allows you to define a fixed route from the internet to a specific port on a computer on your internal network. You have an external IP address assigned to your network access device by your ISP. This is your external facing IP address. e.g. 198.218.194.52
The incoming traffic then goes to your router for distributions to the various devices on your network. If, let's say, you have setup SS to run on port 8085 on your server, and your server is at 192.168.1.254 on your internal network, you just want to define the incoming traffic for port 8085 to always go to 192.168.1.254. This is usually done on a table in your router, but the specifics are different for each router. Read the manual for your specific router to figure out how to access the table.
On the server you use for SS, there should be a way to specify what the NIC uses for its ip address on the internal network. I don't use Ubuntu, but I'm sure there must be an option for controlling the settings on the NIC. Just set it to the same internal ip address that you gave the server in the static route definition in the router. Once you've done that, the router, the server, and SS will all be on the same page and all traffic for the defined port (8085 in this example) will have nowhere else to go except to SS. Just make sure that you open the port on the server's firewall so that the traffic is received by the server.
Gary J
http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/