Dobry den.
- eth0 a eth2 je ethernet.
- eth1 byla wifi karta ktera je ted wlan0 [po zmene firmware se v systemu regla jako wlan0 misto puvodniho eth1 - takze je tam ted takova "mezera"]
- Chci obcas k memu PC pripojit krizenym kabelem AP nebo jine PC [eth2 --> druhe pc |nebo| eth2 --> AP] tak abych ten hardware mohl cez sit z meho PC konfigurovat [http, VNC, telnet]
Vcera jsem to zkusil a nepovedlo se to.
Tady je vypis firehol.conf:
#
# $Id: client-all.conf,v 1.2 2002/12/31 15:44:34 ktsaou Exp $
#
# This configuration file will allow all requests originating from the
# local machine to be send through all network interfaces.
#
# No requests are allowed to come from the network. The host will be
# completely stealthed! It will not respond to anything, and it will
# not be pingable, although it will be able to originate anything
# (even pings to other hosts).
#
version 5
# Accept all client traffic on any interface
# interface any world
# client all accept
DEFAULT_CLIENT_PORTS="1024:65535"
server_icq_ports="tcp/5190"
client_icq_ports="default"
interface eth2 internal
policy drop
protection strong 10/sec 10
server ident reject with tcp-reset
# server ssh accept
# server ping accept
server dhcp accept
client dhcp accept
client dns accept
client http accept
client https accept
client ftp accept
client ntp accept
client ssh accept
client ping accept
UNMATCHED_INPUT_POLICY="DROP"
UNMATCHED_OUTPUT_POLICY="DROP"
FIREHOL_LOG_LEVEL=4
interface eth0 external
protection strong 10/sec 10
# server ssh accept
# server ping accept
policy drop
client dhcp accept
client dns accept
client pop3 accept
client pop3s accept
client smtp accept
client http accept
client https accept
client ftp accept
client ntp accept
client ssh accept
client icq accept
client cups accept
client samba accept
client ping accept
router internal2external inface eth0 outface eth2
masquerade
route all accept- Vypada to spise nato, ze se pocuka default route protoze kdyz sel lokal nesel internet, kdyz jsem vypl lokal, internet razem nabehl. Na vypnuti jsme pouzil prikaz ifconfig eth2 down.
- Nechci na tom lokale sdilet internet, jen k tomu lokalu mit pristup kdyz bude potreba.
- V /etc/network/interface je nakonfigurovano jenom eth0 zbytek jsem delal v konzole [dhclient eth2]
- Hardware je v pohode.
eth2 je klasika realtek 100% funkcni ethernet karta strcena v PCI.
eth0 je integrovana na desce a fungovala 100% a vzdy v pohode.