Guest: Oracle Linux 8 with installed and running Oracle 18c Database
I am in a corporate vpn and tried to access the database (in guest) with e.g. dbeaver (in host). I actually tried both with the vpn and outside. In the guest I opened port 1521/tcp in the firewall and confirmed that with nmap:
Code: Select all
$ sudo nmap -n -PN -sT -sU -p 1521 localhost
[...]
PORT STATE SERVICE
1521/tcp open oracle1.) NAT
Configured forwarding of port 1521. However, from the host a nmap on both ports gives me state "filtered" inside the vpn network and "closed" on the guest outside of the vpn.
Code: Select all
$ nmap 10.0.2.15 -Pn -v -p 1521
[...]
PORT STATE SERVICE
1521/tcp filtered oracleCode: Select all
ssh: connect to host 10.0.2.15 port 22: No route to hostIn vpn ssh from host to guest works but nmap against port 1521 gives state filtered. Outside of the vpn even if I switch of the firewall the port 1521 remains closed:
Code: Select all
$ firewall-cmd --state
not running
$ nmap 192.168.56.101 -Pn -v -p 1521
[...]
PORT STATE SERVICE
1521/tcp closed oracle3.) Bridged network
In the vpn network the guest doesn't get an ip-adress at all.
Outside of the vpn he does. I can ssh from the host to the guest. But still no connection to the database. nmap gives me "closed" for some reason. Why is that?
Code: Select all
$ nmap 192.168.178.189 -Pn -v -p 1521
[...]
PORT STATE SERVICE
1521/tcp closed oracle