How to access my server from another network?
Posted: Wed Jul 24, 2024 5:19 am
Hello, hope you all are fine. I want to access my server from another network. I have included my IP address in the whitelist, but it didn't work.
In the YaST firewall, I have changed the zone of the interfaces from default to public. In the public option, I removed all allowed services except SSH. I saved the settings.
In the crontab, I added this:
This was supposed to work, but it didn't.
I used another method through NAT. I set my DNS IP to public and on my Mikrotik router, I created two NAT rules for ports 80 and 443 which redirect to the server.
However, this isn't the method I want to use because my WebRTC phone does not work outside the network. I don't know why, but also, I have two servers and I can't redirect them with the same public IP because I would have to change the ports 80 and 443 on the servers.
Can anyone help me? I think I'm missing something...
ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5 | SSL | WebRTC
In the YaST firewall, I have changed the zone of the interfaces from default to public. In the public option, I removed all allowed services except SSH. I saved the settings.
In the crontab, I added this:
- Code: Select all
#* * * * * /usr/local/bin/VB-firewall.pl --white --quiet
#@reboot /usr/local/bin/VB-firewall.pl --white --quiet
This was supposed to work, but it didn't.
I used another method through NAT. I set my DNS IP to public and on my Mikrotik router, I created two NAT rules for ports 80 and 443 which redirect to the server.
However, this isn't the method I want to use because my WebRTC phone does not work outside the network. I don't know why, but also, I have two servers and I can't redirect them with the same public IP because I would have to change the ports 80 and 443 on the servers.
Can anyone help me? I think I'm missing something...
ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5 | SSL | WebRTC