Skip to content

Share internet in a SERVER connected to WAN port.

Hello,

The last days I keep trying to configure my server. I know how to configure the network to this:

MODEM -> (eth0) Servidor (eth1) -> (LAN Port) Router (LAN Ports) -> Computers

This topology don`t work for me, because in this way I lost one WAN Port. So I thought in this topology:

MODEM -> (eth0) Servidor (eth1) -> (Porta WAN) Router (Portas LAN) -> Computadoresauto eth1
iface eth1 inet static
address 192.168.100.254
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255

After this I add this iptables rules:

sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING –out-interface eth0 -j MASQUERADE
iptables -A FORWARD –in-interface eth0 -j ACCEPT

I need to setup the router manually:

IP Address : 192.168.100.1
Subnet Mask : 255.255.255.0
ISP Gateway Address : 192.168.100.254
Primary DNS Address : 200.247.141.11 (DNS)
Secondary DNS Address : 200.247.141.12 (DNS)

So up and running

Matheus

Published inAprendendoLinux

170 Comments

  1. Slottica Kasyno dysponuje rozbudowanym katalogiem gier, obejmującym automaty, gry stołowe, kasyno na żywo oraz zakłady sportowe. Platforma współpracuje z czołowymi dostawcami, takimi jak NetEnt, Microgaming i Play’n GO, co przekłada się na wysoką jakość grafiki i płynność rozgrywki.

  2. LewisJonus LewisJonus

    I like how this post keeps the conversation thoughtful and accessible while still making the content feel enjoyable and well explained.

    erome porno

  3. GichardDulge GichardDulge

    Finding clearly arranged and carefully written content like this is always a pleasant surprise, and I really value the balanced stance you maintained while explaining the various facets of this particular situation to your audience.

    porno anne turk

  4. Timsothybox Timsothybox

    I am really glad I clicked on this link, because the breakdown provided here is exactly what I needed to get a better understanding of the current situation and understand the broader context behind everything you have laid out so clearly.

    在线购买无处方安定片 xxx Pornhub

  5. W naszym asortymencie znajdziesz bogaty wybór gier kasynowych od 63 czołowych deweloperów oprogramowania, w tym takich gigantów jak Evolution Gaming, Play’n GO, Pragmatic Play, EGT, BGaming, Bragg oraz Endorphina. Przygotowaliśmy również rozbudowany, pięciostopniowy program lojalnościowy, w którym drogę na szczyt zaczynasz jako nowicjusz, aby docelowo osiągnąć prestiżowy poziom platynowy. Jeśli szukasz autentycznych wrażeń, zajrzyj do naszego kasyna na żywo, gdzie czekają na Ciebie wykwalifikowani krupierzy. Ponadto regularnie hostujemy ekscytujące turnieje, takie jak Daily Drop & Wins, kuszące potężnymi pulami nagród. To wszystko sprawia, że polska wersja Vavada cieszy się opinią licencjonowanego i niezwykle bezpiecznego miejsca do gry w RP, a sam system logowania jest maksymalnie intuicyjny i dopasowany do potrzeb użytkowników.

Leave a Reply

Your email address will not be published. Required fields are marked *