Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Port forwarding on a device, but device on different default gateway


  • Please log in to reply
3 replies to this topic

#1 rogue085

rogue085

  • Members
  • 2 posts
  • OFFLINE
  •  

Posted 12 April 2016 - 03:06 PM

Greetings!

 

I want my router to make a port forward to a device which is 192.168.1.3. This device is currently using a different default gateway, is it possible for the router to make a port forward to device? What alternatives can I create? Ports are 80 and 5060.



BC AdBot (Login to Remove)

 


#2 Kilroy

Kilroy

  • BC Advisor
  • 3,335 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Launderdale, MN
  • Local time:02:21 PM

Posted 13 April 2016 - 06:30 AM

Why does the device have a different default gateway?  Normally the gateway is a router as it connects one network to another.  A gateway is used when an address is not on the same network.

 

We need additional information on your set up.



#3 rogue085

rogue085
  • Topic Starter

  • Members
  • 2 posts
  • OFFLINE
  •  

Posted 13 April 2016 - 06:56 AM

WAN1 - 192.168.1.1

WAN2 - 192.168.1.4

Device default gateway - 192.168.1.4

 

I want to make a port forward of 80 and 5060 from WAN1.

 

Is that possible?


Edited by rogue085, 13 April 2016 - 06:57 AM.


#4 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:12:21 PM

Posted 13 April 2016 - 12:58 PM

You have some misconceptions on how to do this.  One of those "wans" have to be a public ip address.

 

Internet<>wan [public ip] router [private ip 192.168.1.1] lan<>wan [private ip 192.168.1.4] router [private ip 172.16.0.1] lan

 

As you can see you can't have two wans on 192.168.1.0/24 subnet or no routing can take place.

 

If the scenario is you have added a router to an existing router [they are in series] to port forward you have to set the 2nd routers wan port as static ip address.  You forward the ports in the main router to that fixed ip address.  Then you forward the ports in the 2nd router to pc hosts static ip address.


Edited by Wand3r3r, 13 April 2016 - 02:41 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users