Score:0

how to access local ip over Openvpn

gb flag

i have openvpn server on vps and i have ubuntu client in my home in vps i can ping all local ip on my home ubuntu client ip is 10.8.0.10 and local network is 192.168.88.0 now i want to access local ip over vps ip like i have in home media server on 192.168.88.102:5111 i want to access it on vps ip with any port i chose like (8.9.8.121:5111) how can i do it ? i hope my question is clear

port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir ccd
route 192.168.88.0 255.255.255.0
client-to-client
push "route 192.168.88.0 255.255.255.0"
push "dhcp-option DNS 94.140.14.14"
push "dhcp-option DNS 94.140.15.15"
push "redirect-gateway def1 bypass-dhcp"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key
crl-verify crl.pem
ca ca.crt
cert server_xihZuwA8cDxWraST.crt
key server_xihZuwA8cDxWraST.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
client-config-dir /etc/openvpn/ccd
status /var/log/openvpn/status.log
verb 3


ccd for ubuntu client

ifconfig-push 10.8.0.10 255.255.255.0
iroute 192.168.88.0 255.255.255.0

client

proto udp
explicit-exit-notify
remote 8.000 1194
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_xihZuwA8cDxWraST name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
ignore-unknown-option block-outside-dns
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3

ubuntu

iptables -A FORWARD -i tun0 -j ACCEPT
iptables -A FORWARD -i tun0 -o eno2 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eno2 -o tun+ -j ACCEPT

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eno2 -j MASQUERADE


regards

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.