This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:openwrt [2020/04/18 17:00] – jotasandoku | network_stuff:openwrt [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| opkg install tcpdump | opkg install tcpdump | ||
| logread (-f) # for system logs | logread (-f) # for system logs | ||
| + | ssh root@router tcpdump -i eth0 -U -s0 -w - 'not port 22' | wireshark -k -i - # To pull live traces from home router <<< | ||
| * Debug wifi!: [[https:// | * Debug wifi!: [[https:// | ||
| Line 20: | Line 21: | ||
| logread -f | grep ': query' | logread -f | grep ': query' | ||
| | | ||
| + | For remote syslog: | ||
| + | ~In client-router | ||
| + | ~ / | ||
| + | config system | ||
| + | option hostname ' | ||
| + | option ttylogin ' | ||
| + | option log_size ' | ||
| + | option log_file '/ | ||
| + | option urandom_seed ' | ||
| + | option zonename ' | ||
| + | option timezone ' | ||
| + | option log_proto ' | ||
| + | option conloglevel ' | ||
| + | option cronloglevel ' | ||
| + | option log_ip 192.168.0.112 | ||
| + | option log_port 514 | ||
| + | option log_proto udp | ||
| + | / | ||
| + | ~ In server rpi: | ||
| + | ~ / | ||
| + | module(load=" | ||
| + | input(type=" | ||
| + | module(load=" | ||
| + | input(type=" | ||
| + | $AllowedSender UDP, 127.0.0.1, 192.168.0.0/ | ||
| + | |||
| + | if $fromhost-ip == ' | ||
| + | & ~ | ||
| ---- | ---- | ||
| Line 30: | Line 58: | ||
| * file for configuration and pointers to the ca and crt. From ver 19 we can use ovpn file | * file for configuration and pointers to the ca and crt. From ver 19 we can use ovpn file | ||
| * Don'f forget to: add the tun interface ; create the zone for the interface and configure the zone policies. See this link: [[https:// | * Don'f forget to: add the tun interface ; create the zone for the interface and configure the zone policies. See this link: [[https:// | ||
| + | * file for configuration and pointers to the ca and crt : / | ||
| + | * [[https:// | ||
| ---- | ---- | ||
| - | |||
| unified configuration interface. configuration is split into several files located in the **/ | unified configuration interface. configuration is split into several files located in the **/ | ||
| - | You can edit the configuration files with a text editor or modify them with the command line utility program uci. [[https:// | + | You can edit the configuration files with a text editor or modify them with the command line utility program uci. [[https:// |
| - | + | ||
| - | + | ||
| - | ---- | + | |
| opkg list-installed | grep vpn # to see installed packets | opkg list-installed | grep vpn # to see installed packets | ||
| Line 53: | Line 79: | ||
| | | ||
| - | ---- | ||
| - | |||
| - | **OPENVPN**\\ | ||
| - | * file for configuration and pointers to the ca and crt : / | ||
| - | * [[https:// | ||
| ---- | ---- | ||
| Line 156: | Line 177: | ||
| LAN6 configuration. We use dhcpv6 Stateless ( check this [[https:// | LAN6 configuration. We use dhcpv6 Stateless ( check this [[https:// | ||
| + | odhcpd - RA & DHCPv6 Server \\ | ||
| + | |||
| + | * Interfaces » LAN | ||
| + | * Router Advertisement-Service > Stateless | ||
| + | \\ | ||
| + | |||
| + | This, in a linux box, this is the dhcpv6-sl ipv6 assigbed to a linux box: | ||
| + | |||
| + | ip -6 a | ||
| + | |||
| + | 3: wlp2s0: < | ||
| + | inet6 2001: | ||
| + | | ||
| + | |||
| + | And we can see is pingable from internet!: | ||
| + | [[http:// | ||
| + | \\ | ||
| + | while we capture the icmp | ||
| + | tcpdump -nni any "icmp6 && ip6[40] == 128" | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | FIREWALL:\\ | ||
| + | / | ||
| + | fw3 reload | ||
| + | |||
| + | ---- | ||
| + | |||
| + | UPGRADE:\\ | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | * [[https:// | ||
| + | * abc52ff1248f6ec415776f6f23e9229cdadc1eccfa459d018d79ae5645ce972c | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | LIST CURRENT CONNECTIONS: | ||
| + | cat / | ||
| + | | ||
| + | |||
| + | ---- | ||
| + | __CONFIGURE DYNAMIC DNS DDNS IN OPENWRT__\\ | ||
| + | Use preferably the web UI for the config: | ||
| + | |||
| + | cat / | ||
| + | | ||
| + | config ddns ' | ||
| + | option ddns_dateformat '%F %R' | ||
| + | option ddns_loglines ' | ||
| + | option upd_privateip ' | ||
| + | | ||
| + | config service ' | ||
| + | option interface ' | ||
| + | option ip_source ' | ||
| + | option ip_network ' | ||
| + | option service_name ' | ||
| + | option lookup_host ' | ||
| + | option domain ' | ||
| + | option username ' | ||
| + | option password ' | ||
| + | option use_https ' | ||
| + | option enabled ' | ||