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.
Is it possible to get those IPs from DHCP? (so MOON eth0 sends request to EUROPE which would forward it to ADSL-modem which request address. Addresses are assigned by MAC-address (so IP is almost always same)) So I want 3 public IPs (which should be possible, becose I can get top 5 from my ISP)
Address request: MOON -> EUROPE -> Modem
Packets: Modem -> EUROPE (checks destination and is there something why it should be dropped. If there is, then it will drop it) -> DEST
Is it possible by just using dhclient eth0 and adding few IPtables rules to router (check example bellow)? Or do I need some special configuration?
iptables -A INPUT -d 55.71.97.11 -j DROP
iptables -A POSTROUTUING -p tcp --dport 80 --dst 55.71.97.11 -j SNAT --to-source 55.71.97.11
(yeah. I'm not very famiar with iptables yet, but point on that rule should be clear. It should block all incoming connections MOON expect connections to port 80, so it can run webserver).
Reason why I want many public is IPs is that HADES is my little brother computer. I want that he should be able to use same things (so he could example use IRC on servers which allows only one connection/IP. I don't thnk NAT will work on that).
yea u can use DHCP. in the dhcpcd.conf file, you specify the ip's that your server gives out. also, if you are using real ips, you dont have to MASQUERADE or SNAT unless you just want to make it look like all your packets are comming from 1 machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.