SSH and network security

Status
Not open for further replies.

BuckWyld

Ars Praefectus
3,183
Subscriptor
1 - If I have forwarded only the ssh port from my firewall to a machine set up as a ssh server (rsa login only, ssh only for people in a group, no root login) is it a security risk to have other services like xrdp running for access from within the network?

2- If a ssh has password logins turned off what is the easiest, safe for a new user to put their public key on the machine?

3 If I set up a SOCKS proxy and run web browser request through it is there any way for the web host to tell that the request does not originate from the place where it hits the internet? ie if I wanted to circumvent a sportsball regional blackout by routing through a machine in a different region could they tell?
 

BuckWyld

Ars Praefectus
3,183
Subscriptor
They were able to recognize that a vpn service was being used. I don't know how maybe because the endpoint was geographically jumping around too much or that they were able to identify the ip addresses as belonging to a vpn service. I don't know the details, I was asked to help solve the problem after the vpn service had worked for a year and then was caught.
 
then dont use a vpn service, just use a vpn and a proxy. ssh tunneling will expose your DNS queries and you may be caught by geo-fencing with DNS resolution. with a vpn (OpenVPN or LibreSWAN) instead of a ssh server on the box you are thinking of, you can force all traffic through the tunnel so that even DNS lookups appear to come from that host. the use of a proxy on that host will also have DNS and HTTP/S traffic originate from that host.
 

BuckWyld

Ars Praefectus
3,183
Subscriptor
[url=http:/civis/viewtopic.php?p=31642333#p31642333:3ugsjlzp said:
brendan_kearney[/url]":3ugsjlzp]then dont use a vpn service, just use a vpn and a proxy. ssh tunneling will expose your DNS queries and you may be caught by geo-fencing with DNS resolution. with a vpn (OpenVPN or LibreSWAN) instead of a ssh server on the box you are thinking of, you can force all traffic through the tunnel so that even DNS lookups appear to come from that host. the use of a proxy on that host will also have DNS and HTTP/S traffic originate from that host.


I thought that might be the case, but I was hoping an ssh tunnel would work because it is easier to set up. Any suggestions for a good openvpn setup guide?
 
then dont use a vpn service, just use a vpn and a proxy. ssh tunneling will expose your DNS queries and you may be caught by geo-fencing with DNS resolution. with a vpn (OpenVPN or LibreSWAN) instead of a ssh server on the box you are thinking of, you can force all traffic through the tunnel so that even DNS lookups appear to come from that host. the use of a proxy on that host will also have DNS and HTTP/S traffic originate from that host.

SOCKS5 proxy with SSH tunnels DNS too.
 

A440

Seniorius Lurkius
8
[url=http:/civis/viewtopic.php?p=31642333#p31642333:1xx75u1o said:
brendan_kearney[/url]":1xx75u1o]then dont use a vpn service, just use a vpn and a proxy. ssh tunneling will expose your DNS queries and you may be caught by geo-fencing with DNS resolution. with a vpn (OpenVPN or LibreSWAN) instead of a ssh server on the box you are thinking of, you can force all traffic through the tunnel so that even DNS lookups appear to come from that host. the use of a proxy on that host will also have DNS and HTTP/S traffic originate from that host.


I thought that might be the case, but I was hoping an ssh tunnel would work because it is easier to set up. Any suggestions for a good openvpn setup guide?

Digital Ocean have really good openvpn setupp guides and even rent out virtual machines at you:

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04

An alternative, VStoike, gives an interesting server location if you want not USA, Canada, or Europe.
 
Status
Not open for further replies.