ich bin ziemlich neu in der Linux Welt. Gernauer gesagt setzte ich mich damit seit 3 Wochen auseinander... bin also noch voll das Greenhorn.
Mein Wissen und Verständnis steigt aber von Tag zu Tag.

Nur zum "spielen/lernen" wollte ich auf einer alten PCI Wlan Karte einen AP einrichten und das I-Net auf der Kabelgebunden Seite ins Wlan routen.
Ich bin dabei nach dem Wiki https://wiki.debianforum.de/WLAN-Access ... _USB-Stick vorgegangen.
Bei dem Punkt
Code: Alles auswählen
root@debian:~# service networking restart
Code: Alles auswählen
root@debian:~# /etc/init.d/networking start
[....] Starting networking (via systemctl): networking.serviceJob for networking.service failed because the control process exited with error code.
See "systemctl status networking.service" and "journalctl -xe" for details.
failed!
root@debian:~#
Code: Alles auswählen
root@debian:~# journalctl -xe
-- A start job for unit networking.service has begun execution.
--
-- The job identifier is 1045.
Dez 01 19:28:15 debian ifup[1454]: RTNETLINK answers: File exists
Dez 01 19:28:15 debian ifup[1454]: ifup: failed to bring up wlp3s0
Dez 01 19:28:16 debian systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit networking.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Dez 01 19:28:16 debian systemd[1]: networking.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit networking.service has entered the 'failed' state with result 'exit-code'.
Dez 01 19:28:16 debian systemd[1]: Failed to start Raise network interfaces.
-- Subject: A start job for unit networking.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit networking.service has finished with a failure.
--
-- The job identifier is 1045 and the job result is failed.
Dez 01 19:30:01 debian CRON[1541]: pam_unix(cron:session): session opened for user root by (uid=0)
Dez 01 19:30:01 debian CRON[1542]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/s
Dez 01 19:30:01 debian CRON[1541]: pam_unix(cron:session): session closed for user root
lines 3483-3512/3512 (END)
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
#Test mit PCI Wlan Karte TP-Link
#iface wlp3s0 inet dhcp
# wpa-ssid "Garten Egon"
# wpa-psk
# The primary network interface
# auto eth0
# iface eth0 inet dhcp
# WLAN mit fester Adresse für hostapd
auto wlp3s0
iface wlp3s0 inet static
address 192.168.178.99
netmask 255.255.255.0
broadcast 192.168.178.255
# Firewall zurücksetzen, Tabellen leeren
up /sbin/iptables -F
up /sbin/iptables -X
up /sbin/iptables -t nat -F
# Kabelnetzwerk maskieren, Port-Forwarding sowie Nat aktivieren
up iptables -A FORWARD -o enp1s0 -i wlp3s0 -s 192.168.0.0/24 -m conntrack --ctstate NEW -j ACCEPT
up iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
up iptables -t nat -A POSTROUTING -o enp1s0 -j MASQUERADE
up sysctl -w net.ipv4.ip_forward=1
# hostapd und dnsmasq (neu) starten
up service hostapd restart
up service dnsmasq restart
Code: Alles auswählen
root@debian:~# ifconfig
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.61 netmask 255.255.255.0 broadcast 192.168.178.255
inet6 fe80::219:66ff:feff:2ee1 prefixlen 64 scopeid 0x20<link>
ether 00:19:66:ff:2e:e1 txqueuelen 1000 (Ethernet)
RX packets 5316 bytes 3703087 (3.5 MiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 3335 bytes 557418 (544.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 216
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 1000 (Lokale Schleife)
RX packets 8 bytes 396 (396.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 396 (396.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether d2:00:6c:e0:c5:85 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@debian:~#
Code: Alles auswählen
root@debian:~# hostapd -dd /etc/hostapd.conf
Ich hoffe Ihr könnt mir einen Tipp geben.
Gruß Sascha