Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Newbie
    Join Date
    Jan 2022
    Posts
    4

    Default Sorry if this is a post that is overseen - Port Forwarding behind Cable Modem

    I have been working on this for hours, and really I'm not that bad of a network tech. I have a cable modem that has an IP of 192.168.100.1

    My Untangle Router is 192.168.1.1

    I have a Unifi Camera that I was able to create an anonymous jpeg refresh at http://192.168.1.173/snap.jpeg

    I've tried every port forwarding method I could to enable this IP to be seen outside network.

    I need it for my sharptools panel which will have a refresh of 5 seconds to show in my panel.

    Nothing seems to work, is it because my cable modem is 192.168.100.1 and my network is 192.168.1.1?

    Can I set my cable modem to 192.168.1.X and would that help?

    Is the cable modem even the problem? I looked at the manual and there is no port forwarding configs on it.

    I think it's not working since my router is not on the edge of the network, and therefore the cable modem is stopping my efforts.

    Any suggestions appreciated, and I apologize if this is a question asked 1000x

    Attached is one of many port forward configurations I have tried



    My first post after 3 years running purchased untangle 1U server router
    Attached Images Attached Images

  2. #2
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,498

    Default

    Yes, this setup is positively screaming double NAT.

    Untangle cannot forward something that's not even making it to it.

    What is the IP address on Untangle's External interface? If it's 192.168.anything, or 10.anything, or 172.16.anything those addresses are not internet valid, and you have something upstream that's receiving all the public communications and as such, any router much less Untangle operating behind it cannot do anything with the communications.

    Now, don't take this the wrong way. It's not an insult, you're trying, and you're learning which is the best possible combination of traits where you are. You're exactly the sort of person I'd love to be working with on anything out there. But you need to be aware this phrase "I'm not that bad of a network tech.", plus this situation means you ARE that bad of a network tech. This issue is an IP 101 issue, very basic.

    But again, you ARE showing solid troubleshooting skill, adaptability, and self learning. So all you're left with is the eternal process of curing your own ignorance, something we never stop doing. And because you're learning I'm going to suggest a few things to hopefully help you side step the next few landmines you're likely to run into. Or at very least hopefully help you figure out the right questions to ask so we can help you move forward.

    First, get that cable modem into bridge mode. It should allow the Untangle router to get a real public IP address on external directly. This will eliminate the second layer of NAT, and greatly simplify your life. Untangle will then have the visibility to enable its reports engine to help you investigate situations like this more quickly. Pay attention to what those reports show you, understand it, and you'll be a solid network tech in no time.

    Second, I see you're working with a camera with a web server hosted on it. The web URL you provided is HTTP, and since there is no port number in it, AND I assume that link works inside your network, that means the service is operating on the default port of TCP 80. You have forwarded TCP 10080 to the device's 10080 internally. For that to work, your test link would have to be this: http://192.168.1.173:10080/snap.jpeg. So I assume that new port field needs to be 80, if you want http://real.world.ip.addr:10080/snap.jpg to work.

    Third, and this is a tangentially related thing. Untangle steals TCP 443, which is used for HTTPs connections. You cannot forward TCP 443 without moving the Untangle https service port first. Again this isn't technically related to this specific process, just something to keep in mind when working with web services behind Untangle in general. So make sure you keep your protocols straight, TCP 80 is for HTTP, and TCP 443 is for HTTPs.

    Finally, I do not recommend you complete this procedure and leave it in production. Do so as an exercise sure, but be aware that devices like IP cameras are notoriously full of security holes, and their exposure online directly can and will result in your network being exploited at some point in the future. It's highly recommended that you use a VPN to get to your network, and run this sort of thing over that. However, if you don't get a public address on Untangle itself, getting any of its VPN modules online is going to be a CHORE. If you want to jump in the deep end... Make Untangle's VPN apps work behind another NAT device. That's beast mode... It's also hair loss mode... swearing mode... and possibly sleep depriving mode... But if you're up for the deep dive because you really want to know how TCP/IP and NAT work, that's your lab!

    If you're stuck with that cable modem owning your public address you'll have no choice but to attempt beast mode. I don't recommend it if possible, but we'll try to help you get that done too if that's what you're stuck with.

    And welcome to the Untangle Forums!

    P.S. I'm going to say it again, exposed cameras are BAD! Beware!
    Last edited by sky-knight; 01-12-2022 at 11:03 AM.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  3. #3
    Master Untangler
    Join Date
    Jul 2010
    Location
    Nanaimo B.C
    Posts
    788

    Default

    Quote Originally Posted by sky-knight View Post

    P.S. I'm going to say it again, exposed cameras are BAD! Beware!
    Depends on what port, Hikvision Port 8000 is perfectly safe. If you open http or https or rtsp to cameras yes that's BAD.
    Started Youtube Channel, Have a question about Untangle Ask me : jason @ jasonslab.ca
    https://www.youtube.com/c/jasonslabvideos << Please like and subscribe, helps me out !!

  4. #4
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,498

    Default

    Quote Originally Posted by dashpuppy View Post
    Depends on what port, Hikvision Port 8000 is perfectly safe. If you open http or https or rtsp to cameras yes that's BAD.
    No... it isn't. Any service on a device that doesn't receive monthly security updates is at risk just being on a LAN. That's why we have IoT VLANs. Increasing that risk by opening it up to the Internet is just foolishness, it's a time bomb plain and simple.

    You can do that if you wish, I will not, nor will I support it. The risks of breach are too huge, the money involved too high. SDLAN all the things!
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  5. #5
    Master Untangler
    Join Date
    Jul 2010
    Location
    Nanaimo B.C
    Posts
    788

    Default

    Quote Originally Posted by sky-knight View Post
    No... it isn't. Any service on a device that doesn't receive monthly security updates is at risk just being on a LAN. That's why we have IoT VLANs. Increasing that risk by opening it up to the Internet is just foolishness, it's a time bomb plain and simple.

    You can do that if you wish, I will not, nor will I support it. The risks of breach are too huge, the money involved too high. SDLAN all the things!
    10 years going strong ! Not a single issue ! yes it's on it's own Lan network & protected BUT port 8000 for Hikvision Cameras is perfectly safe. It won't respond to anything but the Hik App.
    Started Youtube Channel, Have a question about Untangle Ask me : jason @ jasonslab.ca
    https://www.youtube.com/c/jasonslabvideos << Please like and subscribe, helps me out !!

  6. #6
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,498

    Default

    Quote Originally Posted by dashpuppy View Post
    10 years going strong ! Not a single issue ! yes it's on it's own Lan network & protected BUT port 8000 for Hikvision Cameras is perfectly safe. It won't respond to anything but the Hik App.
    Until it doesn't... that's the nature of this work we live in. I require all publicly exposed anythings to be monthly patchable or they simply don't get exposed.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  7. #7
    Newbie
    Join Date
    Jan 2022
    Posts
    4

    Default

    Quote Originally Posted by sky-knight View Post
    But you need to be aware this phrase "I'm not that bad of a network tech.", plus this situation means you ARE that bad of a network tech. This issue is an IP 101 issue, very basic.
    Thank you for the help and the quick judge analysis of my skills That was an artful reply and made me even a little suspicious of a part cut and paste. Anyways, port forwarding has always pissed me off, probably because I've never been on the edge device, I always handed it to one of my engineers to do. I previously owned StrongVPN.com so I like the idea of using a VPN, who doesn't love a good VPN? My first IP network I dealt with was in 96, my knowledge of networking is a patchwork as I never had the time to waste on my level. But I promise you, I've spent over a hundred hours working in loud cold datacenters, wiring racks, and trying to ssh into a server that everyone wants back up again. So I probably have a little more knowledge than you think I might have.

    The cameras don't have a webserver, it's a NVR from Unifi that is serving up the images
    https://store.ui.com/products/unifi-protect-nvr

    I looked on the manual before, there was no mention of bridge mode. Maybe that's default when they don't mention it? I emailed support asking them if it was possible.

  8. #8
    Master Untangler
    Join Date
    Jul 2010
    Location
    Nanaimo B.C
    Posts
    788

    Default

    Quote Originally Posted by oakweb@gmail.com View Post
    Thank you for the help and the quick judge analysis of my skills That was an artful reply and made me even a little suspicious of a part cut and paste. Anyways, port forwarding has always pissed me off, probably because I've never been on the edge device, I always handed it to one of my engineers to do. I previously owned StrongVPN.com so I like the idea of using a VPN, who doesn't love a good VPN? My first IP network I dealt with was in 96, my knowledge of networking is a patchwork as I never had the time to waste on my level. But I promise you, I've spent over a hundred hours working in loud cold datacenters, wiring racks, and trying to ssh into a server that everyone wants back up again. So I probably have a little more knowledge than you think I might have.

    The cameras don't have a webserver, it's a NVR from Unifi that is serving up the images
    https://store.ui.com/products/unifi-protect-nvr

    I looked on the manual before, there was no mention of bridge mode. Maybe that's default when they don't mention it? I emailed support asking them if it was possible.
    Don't read into his comments, most of the time they come off snarky and a$$ hole ish, but he means good. As you can tell he comments on "EVERY" post that gets posted on Untangle forum here.
    Started Youtube Channel, Have a question about Untangle Ask me : jason @ jasonslab.ca
    https://www.youtube.com/c/jasonslabvideos << Please like and subscribe, helps me out !!

  9. #9
    Newbie
    Join Date
    Jan 2022
    Posts
    4

    Default

    Quote Originally Posted by dashpuppy View Post
    Don't read into his comments, most of the time they come off snarky and a$$ hole ish, but he means good. As you can tell he comments on "EVERY" post that gets posted on Untangle forum here.
    haha no no, I'm not offended it's accurate to some degree for sure. Just thought I'd say a bit more about my background, his comments totally helped and I'm grateful. Now that I'm retired I have a bit more time to fill in my gaps of knowledge, I appreciate any feedback and additionally I feel relieved to have found this resource for advice and opinions. I was a manager / owner / marketer in the ISP business who hired network engineers, but never considered myself anything better than a hack at best.
    dashpuppy likes this.

  10. #10
    Master Untangler
    Join Date
    Jul 2010
    Location
    Nanaimo B.C
    Posts
    788

    Default

    Quote Originally Posted by oakweb@gmail.com View Post
    haha no no, I'm not offended it's accurate to some degree for sure. Just thought I'd say a bit more about my background, his comments totally helped and I'm grateful. Now that I'm retired I have a bit more time to fill in my gaps of knowledge, I appreciate any feedback and additionally I feel relieved to have found this resource for advice and opinions. I was a manager / owner / marketer in the ISP business who hired network engineers, but never considered myself anything better than a hack at best.
    Perfect time to play & learn now then
    oakweb@gmail.com likes this.
    Started Youtube Channel, Have a question about Untangle Ask me : jason @ jasonslab.ca
    https://www.youtube.com/c/jasonslabvideos << Please like and subscribe, helps me out !!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2