6tr6tr DD-WRT User
Joined: 31 Mar 2009 Posts: 65
|
Posted: Mon Sep 19, 2016 16:16 Post subject: Port Forwarding not working |
|
I've set up an apache+php web server in a Virtual Box install of CentOS 7. I'm able to view the site from the host computer (the one that virtual box is installed on), but can't view it from an external computer outside my network.
I've done the following:
1. In CentOS (the web server box), opened up port 80, 443 in iptables:
a. firewall-cmd --zone=public --add-port=80/tcp --permanent
b. firewall-cmd --zone=public --add-port=443/tcp --permanent
2. On guest machine fully turned off the firewall (just temporarily to test)
3. In my router (DD-WRT), added port forwarding to the centos's IP address:
a. 192.168.1.112 Port 80
b. 192.168.1.112 Port 443
4. The Virtual Box is set up as a bridged adapter
Despite this, when I go on my phone over LTE, I'm unable to reach that virtual machine. I know the virtual machine isn't blocking it because I can reach it from the guest os.
What do I need to do on the router to make this work? |
|