ich nutze Linux schon seit '97 und habe immer wieder Netwerke eingerichtet. Irgendwie komme ich jetzt aber nicht weiter. Ich habe mich schon durch fast jedes forum durchgekämpft und viele Versionen ausprobiert. Mein Linux PC verteilt IP Adressen für das Ethernet und das Wifi mittels DHCP und hostapd. Meine Geräte (Tablet) können sich auch im Wifi anmelden, requesten Daten (kann mittels tcpdump getrackt warden), bekommen aber nichts zurück. IP forwarding habe ich aktiviert, die Firewall eigentlich auch gesetzt. Es tut aber nicht, selbst wenn ich die Firewall deaktiviere. Bin langsam echt am verzweifeln.
Hat vielleicht jemand einen Tipp für mich?
Code: Alles auswählen
root@ion:/home/marc# iwconfig
ppp0 no wireless extensions.
wlp2s0 IEEE 802.11bgn Mode:Master Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
lo no wireless extensions.
enp0s10 no wireless extensions.
Code: Alles auswählen
root@ion:/home/marc# ifconfig
enp0s10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::e2cb:4eff:feff:9443 prefixlen 64 scopeid 0x20<link>
ether e0:cb:4e:ff:94:43 txqueuelen 1000 (Ethernet)
RX packets 16038 bytes 12739123 (12.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17247 bytes 1986013 (1.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 5711 bytes 857701 (837.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5711 bytes 857701 (837.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1492
inet 85.181.192.157 netmask 255.255.255.255 destination 62.52.200.201
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 15658 bytes 12358023 (11.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16935 bytes 1594731 (1.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::225:d3ff:fe89:61ea prefixlen 64 scopeid 0x20<link>
ether 00:25:d3:89:61:ea txqueuelen 1000 (Ethernet)
RX packets 4888 bytes 401958 (392.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 573 bytes 60799 (59.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Code: Alles auswählen
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto dsl-provider
iface dsl-provider inet ppp
pre-up /bin/ip link set enp0s10 up # line maintained by pppoeconf
provider dsl-provider
#auto enp0s10
#iface enp0s10 inet manual
auto enp0s10
iface enp0s10 inet static
address 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
# up ip addr add 192.168.1.1/24 dev enp0s10 label enp0s10:1
# down ip addr del 192.168.1.1/24 dev enp0s10 label enp0s10:1
# up ip route add 192.168.1.0/24 via 192.168.1.1 dev enp0s10:1 metric 20
# down ip route del 192.168.1.0/24 via 192.168.1.1 dev enp0s10:1 metric 20
dns-nameservers 192.168.1.1 62.109.121.1, 62.109.121.2
auto wlp2s0
iface wlp2s0 inet static
# post-up /usr/sbin/hostapd -B /etc/hostapd/hostapd.conf
# post-up service isc-dhcp-server restart
address 192.168.2.1
netmask 255.255.255.0
# NAT und Masquerading aktivieren
up /sbin/iptables -A FORWARD -o enp0s10 -i wlp2s0 -m conntrack --ctstate NEW -j ACCEPT
up /sbin/iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
up /sbin/iptables -t nat -F POSTROUTING
up /sbin/iptables -t nat -A POSTROUTING -o enp0s10 -j MASQUERADE
# IP-Forwarding aktivieren
up sysctl -w net.ipv4.ip_forward=1
up sysctl -w net.ipv6.conf.all.forwarding=1
hostapd.conf
![NoPaste-Eintrag](./ext/phpbbde/pastebin/styles/debianforumde/theme/images/icon_pastebin.gif)
dhcpd.conf
![NoPaste-Eintrag](./ext/phpbbde/pastebin/styles/debianforumde/theme/images/icon_pastebin.gif)
dhclient.conf
Code: Alles auswählen
# Configuration file for /sbin/dhclient, which is included in Debian's
# dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
# man page for more information about the syntax of this file
# and a more comprehensive list of the parameters understood by
# dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
# not leave anything out (like the domain name, for example), then
# few changes must be made to this file, if any.
#
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
#send host-name "andare.fugue.com";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
supersede domain-name "mylan";
prepend domain-name-servers 192.168.1.1;
supersede domain-name "mywlan";
prepend domain-name-servers 192.168.2.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
#require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
#alias {
# interface "eth0";
# fixed-address 192.5.5.213;
# option subnet-mask 255.255.255.255;
#}
#lease {
# interface "eth0";
# fixed-address 192.33.137.200;
# medium "link0 link1";
# option host-name "andare.swiftmedia.com";
# option subnet-mask 255.255.255.0;
# option broadcast-address 192.33.137.255;
# option routers 192.33.137.250;
# option domain-name-servers 127.0.0.1;
# renew 2 2000/1/12 00:00:01;
# rebind 2 2000/1/12 00:00:01;
# expire 2 2000/1/12 00:00:01;
#}
Vielen Dank für Eure Hilfe!
MB