
madrgastag
(usa Debian)
Enviado em 25/11/2021 - 11:42h
Fala galara, beleza?
Então, eu estou configurando um servidor Linux Debian 9, esse computador tem 4 portas Ethernet (0,1,2,3)
Eu configurei para que 3 portas sejam para link de internet (vivo, claro, oi...) e 1 porta de saída DHCP com roteamento.
The primary network interface
allow-hotplug enp4s0
iface enp4s0 inet static
address 192.168.20.177
netmask 255.255.255.0
gateway 192.168.20.1
network 192.168.20.1
allow-hotplug eno1
iface eno1 inet static
address 192.168.20.178
netmask 255.255.255.0
gateway 192.168.20.1
network 192.168.20.1
allow-hotplug enp2s0
iface enp2s0 inet static
address 192.168.20.179
netmask 255.255.255.0
gateway 192.168.20.1
network 192.168.20.1
allow-hotplug enp1s0
iface enp1s0 inet static
address 10.0.100.254
netmask 255.255.255.0
#network 10.0.100.254
Pois bem, o servidor DHCP é o enp1s0, ele pinga mas não há navegação com a internet para que eu possa testar.
Já vi no iptables -L -t nat -n -v está com a rota criada conforme eu pedi
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8090 to:10.0.100.250
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3070 to:10.0.100.250
comando tail -f /var/log/syslog acusa a conexão do notebook com o IP 10.0.100.5
Queria saber no que eu errei rsrsr. Sou novo no assunto e já to "metendo" a cara nisso rsrs
Vlw