Port Forwarding not working

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
6tr6tr
DD-WRT User


Joined: 31 Mar 2009
Posts: 65

PostPosted: Mon Sep 19, 2016 16:16    Post subject: Port Forwarding not working Reply with quote
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?

    sss
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum