na ich habe die zuhause noch am laufen für den anderen pi. und in der fritzbox habe ich dann die dyndns daten der zuhause hinterlegt.
musste dann diesen https://dyndns.strato.com/nic/update?hostname=<domain>&myip=<ipaddr>,<ip6addr>
link einsetzten.
na ich habe die zuhause noch am laufen für den anderen pi. und in der fritzbox habe ich dann die dyndns daten der zuhause hinterlegt.
musste dann diesen https://dyndns.strato.com/nic/update?hostname=<domain>&myip=<ipaddr>,<ip6addr>
link einsetzten.
pi@evb-serverpi:~ $ sudo netstat -tutpena
Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address Foreign Address State Benutzer Inode PID/Program name
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 0 5662490 29484/connmand
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 12202 584/sshd: /usr/sbin
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 0 12410122 15052/cupsd
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 115 16483 634/mariadbd
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 0 14568 576/vncserver-x11-c
tcp 0 0 0.0.0.0:7070 0.0.0.0:* LISTEN 0 14631 545/anydesk
tcp 0 0 127.0.0.1:41995 127.0.0.1:48328 VERBUNDEN 1000 16150 1212/vncserverui
tcp 0 0 192.168.5.225:5900 192.168.5.200:59634 TIME_WAIT 0 0 -
tcp 0 0 192.168.5.225:49830 208.115.231.170:80 VERBUNDEN 0 12420256 545/anydesk
tcp 0 0 127.0.0.1:48328 127.0.0.1:41995 VERBUNDEN 0 18467 576/vncserver-x11-c
tcp 0 304 192.168.5.225:22 192.168.5.200:59588 VERBUNDEN 0 12431366 18512/sshd: pi [pri
tcp6 0 0 :::80 :::* LISTEN 0 13752 718/apache2
tcp6 0 0 :::21 :::* LISTEN 116 12014956 17485/proftpd: (acc
tcp6 0 0 :::22 :::* LISTEN 0 12204 584/sshd: /usr/sbin
tcp6 0 0 ::1:53 :::* LISTEN 0 5662494 29484/connmand
tcp6 0 0 :::4369 :::* LISTEN 0 13349 1/init
tcp6 0 0 :::5900 :::* LISTEN 0 14567 576/vncserver-x11-c
tcp6 0 0 ::1:631 :::* LISTEN 0 12410121 15052/cupsd
udp 0 0 192.168.5.225:35781 192.168.5.10:53 VERBUNDEN 0 5664913 29484/connmand
udp 0 0 192.168.5.225:41454 192.168.5.10:53 VERBUNDEN 0 12420317 29484/connmand
udp 0 0 127.0.0.1:53 0.0.0.0:* 0 5662482 29484/connmand
udp 0 0 0.0.0.0:68 0.0.0.0:* 0 12352075 29484/connmand
udp 0 0 0.0.0.0:68 0.0.0.0:* 0 12222 455/dhcpcd
udp 0 0 192.168.5.225:35951 192.168.5.10:53 VERBUNDEN 0 5664895 29484/connmand
udp 0 0 0.0.0.0:631 0.0.0.0:* 0 12410131 15059/cups-browsed
udp 0 0 0.0.0.0:46778 0.0.0.0:* 0 12420319 29484/connmand
udp 0 0 0.0.0.0:50364 0.0.0.0:* 108 13487 384/avahi-daemon: r
udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 13485 384/avahi-daemon: r
udp 0 0 0.0.0.0:50001 0.0.0.0:* 0 14734 545/anydesk
udp6 0 0 :::546 :::* 0 5663333 455/dhcpcd
udp6 0 0 ::1:53 :::* 0 5662486 29484/connmand
udp6 0 0 :::5353 :::* 108 13486 384/avahi-daemon: r
udp6 0 0 :::34555 :::* 108 13488 384/avahi-daemon: r
pi@evb-serverpi:~ $
Alles anzeigen
so habe ich das aktuell in der Box. Die IPv6 hat die FB von alleine eingetragen. Das ja top.
Warum die Box nun bei evb-serverpi kein 433 macht bei ipv6 ist mir n rätsel.
● dhcpcd.ser
vice - dhcpcd on all interfaces
Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-09-08 22:12:36 CEST; 4 days ago
Main PID: 449 (dhcpcd)
Tasks: 2 (limit: 2059)
CGroup: /system.slice/dhcpcd.service
├─449 /sbin/dhcpcd -q -b
└─529 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
Sep 13 06:38:33 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 06:42:40 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 06:51:38 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 06:52:34 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 06:52:35 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 07:01:06 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 07:07:34 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 07:07:35 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 07:12:43 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
Sep 13 07:12:51 webpi dhcpcd[449]: eth0: Router Advertisement from fe80::cece:1eff:fe39:45a4
pi@webpi:~ $
Alles anzeigen
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname
# Use the hardware address of the interface for the Client ID.
clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
#duid
# Persist interface configuration when dhcpcd exits.
persistent
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu
# Most distributions have NTP support.
#option ntp_servers
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private
# Example static IP configuration:
#interface eth0
#static ip_address=192.168.0.10/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
#static routers=192.168.0.1
#static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1
# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
#static domain_name_servers=192.168.1.1
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
interface eth0
static ip_address=192.168.5.90/24
static netmask 255.255.255.0
static routers=192.168.5.10
static domain_name_servers=192.168.5.10
static domain_search=
pi@webpi:~ $
Alles anzeigen
Lars
hab auf einen pi 1 mal nach der IP gesucht.
pi@raspberrypi:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:fa:a4:d1 brd ff:ff:ff:ff:ff:ff
inet 192.168.5.211/24 brd 192.168.5.255 scope global dynamic noprefixroute eth0
valid_lft 445535sec preferred_lft 369935sec
inet6 2003:ea:d708:501e:b607:fafa:cd80:2bf/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 172792sec preferred_lft 86392sec
inet6 fe80::beba:8a0:81ea:6398/64 scope link
valid_lft forever preferred_lft forever
pi@raspberrypi:~ $
Alles anzeigen
danke lars
Hallo,
so nun habe ich endlich eine Fritzbox ist zwar nur eine 7490 aber ich komme erstmal weiter.
Welche IPv6 von den die ich hier sehe muß ich dann eintragen.
danke
YAPS...
YAPS Network Scan
xxx.xxx.xxx.xxx
Scan performed on system Papa_seiner
09/02/23 11:24:57
Port Scan: 7 13 19 21 23 25 37 53 69 79 80 88 109-111 113 119 137-139 143 161 162 194 220 443 512-518 529 533 540-544 744 749 995 1080 1110 2213 5631 5631 26000
Smart Scan: Resolve-Host-Name ICMP-Echo (Continue-on-error) Windows-Networking Web-Servers (Show-web-source) Telnet FTP Finger SMTP-Mail POP-Mail NNTP-News Daytime DNS
xxx.xxx.xxx.xxx p54baxxxx.dip0.t-ipconnect.de
Ping Time: avg 1 min 1 max 9
Ports responding:
21 ftp
80 http
Total Ports: 2
Web Server at port 80: 400 Bad Request
HTTP/1.1 400 Bad Request
Date: Sat, 02 Sep 2023 09:24:33 GMT
Server: Apache/2.4.38 (Raspbian)
Content-Length: 303
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.38 (Raspbian) Server at 127.0.1.1 Port 80</address>
</body></html>
HTTP/1.1 400 Bad Request
Date: Sat, 02 Sep 2023 09:24:34 GMT
Server: Apache/2.4.38 (Raspbian)
Content-Length: 303
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.38 (Raspbian) Server at 127.0.1.1 Port 80</address>
</body></html>
Web Server at port 443: 400 Bad Request
HTTP/1.1 400 Bad Request
Date: Sat, 02 Sep 2023 09:24:34 GMT
Server: Apache/2.4.38 (Raspbian)
Content-Length: 455
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
</p>
<hr>
<address>Apache/2.4.38 (Raspbian) Server at zuhause.schmidt-bande.com Port 80</address>
</body></html>
HTTP/1.1 400 Bad Request
Date: Sat, 02 Sep 2023 09:24:34 GMT
Server: Apache/2.4.38 (Raspbian)
Content-Length: 455
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
</p>
<hr>
<address>Apache/2.4.38 (Raspbian) Server at zuhause.schmidt-bande.com Port 80</address>
</body></html>
FTP response:
220 ProFTPD Server (Debian) [::ffff:192.168.5.90]
331 Password required for ftp
530 Login incorrect.
215 UNIX Type: L8
Alles anzeigen
Früher habe ich mit YAPS gescannt. das kann nur IPv4 aber läuft...
das Programm fand ich auf der DatenschutzCD ich glaube https://www.amazon.de/Datenschutz-CD-Version-2000-Hackers-Friend/dp/3932782240?tag=psblog-21 [Anzeige]
die CD's müsste ich glaube noch besitzen.
Aber wie ist das mit Portweiterleitung damit öffne ich doch nach aussen hin.
so funktioniert es
function msg_color($pdo, $alert_tbl, $zeile_msg) {
$sql = 'SELECT * FROM ' . $alert_tbl . ' WHERE `id` > 0 ORDER BY prio';
$found = false;
foreach ($pdo->query($sql) as $alert) {
$position = strpos($zeile_msg, $alert['suchwort']);
if ($position !== false) {
$found = true;
$ct = $alert['suchfarbe'];
$cbg = $alert['hinterfarbe'];
return array ($ct, $cbg);
break;
}
}
if (!$found) {
return;
} }
Alles anzeigen
gefunden bei https://stackoverflow.com/questions/3451…from-a-function
danke
Alles klar, @malabarista2
das werde ich gleich umsetzten, ich gehe mal davon aus, wenn ich 2 farben zurück geben möchte dann
return ($color1, $color2);
danke
ich habe es nun so gemacht. hyle bennetr
$zeile_time = $zeile['time'];
$zeile_ric = $zeile['ric'];
$zeile_msg = $zeile['msg'];
$color = msg_color($pdo, $alert_tbl, $zeile_msg);
echo $color." ".$zeile_time." </td>";
echo $color." "; ric_kennung($pdo, $ric_tbl, $zeile_ric); ric_zaehlen($pdo, $pocsag_tbl, $zeile_ric); echo " </td>";
echo $color." ".$zeile_msg." </td>";
vielleicht hat das return geholfen.
PS: hyle kannst du mir mal eine PN schicken, danke
Werde das gleich mal testen...ok dann muß ich alle function umbauen.
blackjack
aber in mein code ist das doch ein zusehen. ich möchte gerne anhand von "suchwort" die Tabellenzeile farblich gestallten. Nach dem das "Suchen und Finden" mehr oder weniger erfolgreich war, kommt in der ausgabe.php ja auch das Zeilenende Quellcode3
Frage hierzu, wie würdest du es den umsetzten?
danke Lars
Hallo Forum,
vor einer weile habt ihr mir super bei dem Code geholfen, suchtext und dann entsprechend einfärben.
Nun dachte ich, man könnte die ausgabe an eine variable übergeben und später egal wo, kann ich dann die variable einfügen.
function msg_color($pdo, $alert_tbl, $zeile_msg) {
$sql = 'SELECT * FROM ' . $alert_tbl . ' WHERE `id` > 0 ORDER BY prio';
$found = false;
foreach ($pdo->query($sql) as $alert) {
$position = strpos($zeile_msg, $alert['suchwort']);
if ($position !== false) {
$found = true;
echo "<td style='background-color: ".$alert['hinterfarbe']."; color: ".$alert['suchfarbe']."'>";
break;
}
}
if (!$found) {
echo "<td>";
} }
Alles anzeigen
aber irgendwie passiert das nicht wie ich es gerne hätte, sicher denke ich da auch wieder völlig falsch.
in der ausgabe php habe ich folgenden code.
$zeile_time = $zeile['time'];
$zeile_ric = $zeile['ric'];
$zeile_msg = $zeile['msg'];
$color = msg_color($pdo, $alert_tbl, $zeile_msg);
echo $color." ".$zeile_time." </td>";
echo $color." ";
ric_kennung($pdo, $ric_tbl, $zeile_ric);
ric_zaehlen($pdo, $pocsag_tbl, $zeile_ric);
echo " </td>";
echo $color." ".$zeile_msg." </td>";
Alles anzeigen
aktuell ist das so...
echo " ".$zeile_time." </td>";
msg_color($pdo, $alert_tbl, $zeile_ric, $zeile_msg);
echo " ";
ric_kennung($pdo, $ric_tbl, $zeile_ric);
ric_zaehlen($pdo, $pocsag_tbl, $zeile_ric);
echo " </td>";
msg_color($pdo, $alert_tbl, $zeile_ric, $zeile_msg);
echo " ".$zeile_msg." </td>";
was natürlich eine höhere Auslastung darstellt.
wo mache ich den fehler?
danke
Hallo, habe mich nun erkundigt und die Telekom vertreibt nur die Speedports, so das ich mir eine Fritzbox alleine kaufen werden.
Jetzt habe ich natürlich keine große Erfahrung was es mit den ganzen modellen aufsich hat.
Kannst du mir da eine Box empfehlen? (7590)
danke
Bis jetzt war ich auch immer zufrieden. Ist ja nur jetzt weil ich mit ipv6 spielen möchte.
Komisch nur das der Speedport von AVM produziert wird.
Muss ich mal Rücksprache führen mit denen.
Lars
Also die Telekom Technik macht kein IPv6 weiterleiten
https://telekomhilft.telekom.de/t5/Festnetz-In…in/td-p/6053855
also die andere Variante verwenden, mit reverse proxy
Die Portfreischaltung ist ja ipv4. Deswegen brauche ich diese nicht mehr.
V6 keine Ahnung.