Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My company got cctv camera's, now there want to assign single ip to about 10 camera but the they want to have access each camera with its port number
example:
cam1 ip >10.0.0.50:80
cam2 ip >10.0.0.50:81
cam3 ip > 10.0.0.50:82
the ip i have chosen is just an example one i want to focus on port number rather than ips.
There is an option to get this done through Router(Netlink router) im eager whether it is possible to do the same using Linux Box (making it as a router)??.
what's possible depends on what this camera is... are they networked? usb? we can't really help if you don't actually tell us about what these things are. there's certainly no reason you can run multiple web services on different ports, apache can do that without thinking...
Assuming that the cameras are each connected to the same network, with separate network cards each, then that's not directly possible.
Each IP address on the network relates to one network interface controller (NIC), being one network card. Each NIC can have several IP addresses.
You would have to assign each network card its own IP address, and then set up 10.0.0.50 as a NAT-ing router. You can then redirect ports on the router to point to the various cameras.
e.g. let's say camera 1 is at 10.0.0.1 and camera 2 is at 10.0.0.2, and the router (any old linux box would do) is at 10.0.0.50 as in your example. You can then set up port redirection to forward port 10.0.0.50:80 to 10.0.0.1:80, and 10.0.0.50:81 to 10.0.0.2:80.
You could even set up the cameras on a separate subnet if the number space becomes a problem. The router would just need two IPs , say 10.0.0.50 and 10.0.1.50, and routing table entries to direct both subnets to the card. (Or change the netmask to 255.255.127.0 so the router thinks of it as one subnet, but that can get very confusing).
okay here is exactly what i, i just confirmed it lol,
there are camera's and these camera's will in LAN through a switch. Now ppl from other part of the world should be able access all the camera whenever they want (sort of a website kinda service u may think of). So how to achieve this using linux box?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.