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 ISP can give me up to 5 ip addresses. Is it possible to "forward" one of them to a machine to get rid of nat? I was thinking of "forwarding" one public ip to my machine and let the rest of the network share one ip using nat.
It would depend on the topology of your system. If you have a public IP on any lan computer it would be easy to allow it access to and router to the internet. Simply put the ip and gateway in and go. As for topology you may have to explain so that we get the correct gateway.
It depends on what your router is capable of.
TBH, I would doubt it, if it's a standard consumer router.
If you set up a linux box as your router, no problem... just create the iptables rules to forward all for a given destination to whatever box you require.
My ISP can give me up to 5 ip addresses. Is it possible to "forward" one of them to a machine to get rid of nat? I was thinking of "forwarding" one public ip to my machine and let the rest of the network share one ip using nat.
Currently I use dnsmasq and debian.
Thanks.
You may have to set up your box as a router.
Setting iptables is also needed to forward ip packets.
My router is a x86 box running iptables and debian.
The thing is that the ip addresses I receive from my isp aren't static. Dunno if there is a way to let iptables get a ip address from a dhcp and then forward it.
My router is a x86 box running iptables and debian.
The thing is that the ip addresses I receive from my isp aren't static. Dunno if there is a way to let iptables get a ip address from a dhcp and then forward it.
That would be NATing with I already have. I would like to forward another public ip to a single computer.
I guess the question is how can I get two ip addresses on one interface?
Also see the attached picture in the previous post. It's kind of hard to explain or maybe I'm just making it hard, dunno
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.