New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Shadowsocks + NAT IPv4 VPS?
My server only has NAT IPv4
I setup Shadowsocks using this:
https://github.com/shadowsocks/shadowsocks/wiki/Configuration-via-Config-File
Can someone tell me where to put my NAT IPv4 port?
Should I keep the local_address: 127.0.0.1 or change it to my VPS INTERNAL IP address?
Comments
use the local address. which should listen on all.
server_port.
Local address, if not working, try something else.
vi /etc/shadowsocks.json
change
"mserver":0.0.0.0 to "mserver":your vps NAT IPv4 address
"server_port":8388 to "server_port":your vps NAT IPv4 port
you can use 0.0.0.0 on server, and only thing you need to set is server_port to one of the port you were given by your nat vps provider.
Need a little help.
http://i.imgur.com/PU92KgL.png
In Android phone. I put:
Server 0.0.0.0
Remote Port 19820
Local Port 1080
password password
method aes-256-cfb
I cannot connect to the Internet?
Try the Shared IPv4 here.
If I put the Shared IPv4 in Your Server IP, I will get this:
Could not find PID file /var/run/shadowsocks.pid
http://imgur.com/x4onAKM
If I change it back to 0.0.0.0, I can't connect to the Internet
you put 0.0.0.0 inside your server detail,
you put your shared ipv4 info at your client.
Inside shadowsocks use IP to what you connect though ssh.
http://i.imgur.com/PU92KgL.png
In Android phone. I put:
Server 0.0.0.0
Remote Port 19820
Local Port 1080
password password
method aes-256-cfb
I cannot connect to the Internet?
Try other ports.
Server IP can be 0.0.0.0 or your internal IP (NAT) >> setting on the server sida.
Setting on client side:
Server IP must be set as you Shared IPV4.
Port must be one of your dedicated ports.
What does it mean? It can't be run on lowendboxes?
Use OpenVZ VM that supports vswap. Otherwise, the OS will incorrectly account much more memory than actually used. shadowsocks-go on OpenVZ VM with vswap takes about 3MB memory after startup. (Refer to this issue for more details.) If vswap is not an option and memory usage is a problem for you, try shadowsocks-libev.
just use libev instead of go
Shadowsocks supports to configure custom outgoing trafic interface? Something like listening port on lan interface 192.168.33.123 and traffic goes trough custom interface eth1 (ex.ter.nal.ip) ? Thanks
For NAT IPv4, you must distinguish between the external IP of the node (how it is reached from the outside world) and the internal IP of your VPS (how packets arrive at it from inside the network). I will make a tutorial later on today.
@chuck, I use this script on my NAT box.
http://teddysun.com/358.html
Just change the port to the one mentioned in your email.
For the IP use the actual IPV4 and not the internal IP on both server and client.
Nice necro from last year.