The proxy server is: Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-05f37c3995fffb4fd ~ t2.micro ~ (It provides Linux kernel 4.14 tuned for optimal performance on Amazon EC2, systemd 219, GCC 7.3, Glibc 2.26, Binutils 2.29.1, and the latest software packages through extras.)
I ssh into the server with the Windows 10 Ubuntu Bash Shell App.
This is all a bit over my head. Any help would be very much appreciated.
Are you sure it isn’t supposed to have a .conf the end?
I doesn’t need it in a unix system, but often files have extensions, for humans?
[several guides point to the same location, even the ones made before gnu/Linux became Systemd/gnu/Linux So the file does not have .conf, I am mistaken]
If there is any text on the screen when you run Vi/Vim/Nano, the file exists and is potentially what you’re looking for. If in doubt, check the ArchWiki page. Doesn’t matter which distro you use, Archwiki tends to have the best documentation. https://wiki.archlinux.org/index.php/Sslh
With regards to the file being unwritable, This is due to the user having only read permission,s not write. To fix, append sudo assuming you have sudo authority.
E.g. sudo nano /etc/sysconfig/sshl
It is also good to look into how to use chmod and chown looking at the basic configuration on Archwiki.
I installed sslh to try to look at the configuration. It looks like the default is all comments except for the run and daemon line. Add this to the bottom of /etc/sysconfig/sslh. RUN=yes DAEMON=/usr/sbin/sslh
Then follow the guide like normal
EDIT: you may need to comment out the DAEMON_OPTS line
Also I think the game has multiple ports to forward. The guide only opens one port (last DAEMON line in my sslh config file). How to open multiple ports? Do seperate them with comma/colon/space?
The lines you added may need to go into /etc/sysconfig/sslh Everything above the RUN=yes appears to be a different method of configuration. And comment the original DAEMON_OPTS line in /etc/sysconfig/sslh.
OR
in /etc/sslh.cfg remove the lines you added, change the listen host to 0.0.0.0 and port to 27015, add another listen line for each port, remove the entries under protocols, add an entry with your name, host, and port for each port (the name is probably just used to identify the entry, it might not matter what its value is). At the top add pidfile: “/var/run/sslh.pid”;
Okay that Ubuntu server didn’t work. Couldn’t even SSH into it. Received message: Ubuntu server IP blocked port 22 (SHH). Even after I opened all of the inbound UDP/TCP ports.
So I’m back on the original Amazon server.
Bobby, the only SSLH config file that I can find is here: /etc/sslh.cfg
If I try anything else it just brings up a blank text file.
I tested it with the current configuration (shown in previous image) but it didn’t work.
Also… when I input the command: sudo systemctl start sslh
The terminal doesn’t confirm the action with text, it just skips to the next line.
I have no idea why the SSLH config file is not located here: /etc/default/sslh
Like shown in the guide, & some of the documentation linked.
@Grog you need to modify the /etc/sslh.cfg file. My last post had some basic instructions on how to do that. The second method is slightly more complex, but allows for multiple ports. If you need more clear instructions on how to edit the file, let me know