Networking – Tell a router to get Internet through another router

I have two routers: One is a Billion BiPAC 8800NL router and the other is a Teltonika RUT950. The billion currently handles DSL dial-up and DHCP leases. Now I want to switch to this new Teltonika and make him dial in, but at the same time leave my old trillion for DHCP.

Of course, I have to turn off DHCP for the Teltonika and give it a static IP, but how do I tell the Billion that it gets through the Teltonika "Internet"?

Networking – Why is the restart of dhclient + systemd frequently done?

I run an Ubuntu server in aws on VERSION = "18.10 (Cosmic Cuttlefish)"

We had some problems with the DNS solution at times, and while I was researching that, I all saw for about 20 minutes that I saw the following in syslog

March 19th 00:17:03 localhost dhclient[815]: DHCPREQUEST from 172.31.26.85 to eth0 to 172.31.16.1 port 67 (xid = 0x7d329bb3)
March 19th 00:17:03 localhost dhclient[815]: DHCPACK of 172.31.26.85 from 172.31.16.1
March 19 00:17:03 localhost systemd[1]: Stop Network Name Resolution ...
March 19 00:17:03 localhost systemd[1]: Finished Network Name Resolution.
March 19 00:17:03 localhost systemd[1]: Starting Network Name Resolution ...
March 19th 00:17:04 localhost dhclient[815]: tied to 172.31.26.85 - renewal in 1747 seconds.

It seems that every time dhclient goes through a renewal process, systemd-resolution restarts, causing DNS resolution not to work for the moment. So, if a process has been executed at this time, the resolution may fail.

I'm not sure where to start. Is it normal for dhclient to reboot systemd-resolved that often? What is the right solution to this problem? Should I force Dhclient to renew less often does it have a negative impact? Any other suggestions?

Networking – How to enable multicast between subnets through a Palo Alto firewall

I have two subnets connected via a Palo Alto 850 firewall.

I've been working with my network type and he says he "set up a static RP, turned on IGMP PIM for the interfaces, and set the PIM allowed neighbors to" any ".

Nevertheless, a trivial multicast server in one subnet can not transfer data to a trivial client in the other. The same trivial client works on the same subnet as the server. Client and server are running CentOS 7. firewalld is disabled for both; Server is running in a VMware VM. The working client (on the same subnet) is a different VMware VM, but the client on the other subnet is a standalone workstation.

Trivial Client:

#! / usr / bin / python

from __future__ import print function

import base
import struct
import time

def log (* args, ** kw):
print (time.strftime ("% H:% M:% S"), * args, ** kw)

Class Monitor (Object):

def __init __ (self, name = "client", args = (), kwargs = {}):
self.args = args
self.kwargs = kwargs

def start (self):
self._run (* (self.args), ** (self.kwargs))

def_run (self, * args, ** kw):
Group = KW["mgroup"]
        port = kw["mport"]

        Protocol ("Mcast Group", Group, "Port", Port)
sock = socket.socket (socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt (socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind ((group, port))

sock.settimeout (5)

mreq = struct.pack ("4sl", socket.inet_aton (group), socket.INADDR_ANY)
sock.setsockopt (socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)

count = 0
while true:
To attempt:
package = sock.recv (8192)
count + = 1
except Socket.timeout:
Protocol ("Mcast Timeout")
Finally:
if count> 0 and count% 10 == 0:
Protocol ("Mcast received", number, "packets")

def main (kw):
Client = monitor (kwargs = kw)
client.start ()

if __name__ == "__main__":
kw = {"mgroup": "239.1.2.49", "mport": 20000
}
main (kw)

Trivial Server:

#! / usr / bin / python

from __future__ import print function

import base
import time

def_mgroup = "239.1.2.49"
def_mport = 20000
def_rate = 2

def usage ():
Import sys
print ("Usage:", sys.argv.)[0],
"[multicast group address [multicast port [rate]]]")
to press()
print ("Multicast group address - default", def_mgroup)
print ("Multicast-Port - Standard", def_mport)
print ("rate - default", def_rate)

def main (** kw):

mgroup = kw.get ("mgroup", def_mgroup)
mport = kw.get ("mport", def_mport)
rate = kw.get ("rate", def_rate)

sleepdur = 1.0 / rate # divide by zero if you ask for it

sock = socket.socket (socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt (socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 10)

npackets = 0
while true:
sock.sendto ("robot", (mgroup, mport))
npackets + = 1
if npackets% 10 == 0: print (time.strftime ("% H:% M:% S"), "sent", npackets)
time.sleep (sleepdur)

if __name__ == "__main__":
args = {}

Import sys
To attempt:
if len (sys.argv)> 1:
args["mgroup"] = sys.argv[1]

        if len (sys.argv)> 2:
args["mport"] = int (sys.argv[2])

if len (sys.argv)> 3:
args["rate"] = int (sys.argv[3])

main (** args)

Exception exception as e:
print
Usage()

None of us really knows what we are doing. Can someone throw some light on this?

Networking – GCP: Can I have multiple IP subnets on the interface?

Can I set up two subnets on the VM interface in Google Cloud Platform?

For example:

I have VPC VPC1 and there are 2 subnets: Subnet1 - 10.1.1.0/24 and Subnet2 - 192.168.1.0/24

Can I map to the interface? eth0 from VM vm1 2 IP addresses 10.1.1.10 and 192.168.1.10 ?
It is called IP aliasing

I want to serve traffic from both subnets.

Many Thanks

ps: I do not want to add multiple interfaces because of the GCP interface vcpu quota.

Networking – Rsync to another computer within the same WLAN

I regularly secure my books on another computer on the same Wi-Fi network.

rsync -avlu --exclude = ".git" ~ / Documents / Books beta@192.168.31.90: ~ / Documents / books
rsync -avlu - exclude = {. git, .DS_Store} "~ / Documents / Books beta@192.168.31.90: ~ / Documents / books

I should always remember the IP address of the destination computer.

Tried @local and @localhost, but failed.

How can I use a name instead of a number series?

Amazon Web Services – EC2: Automatic networking across multiple EC2

I have a system where raspberry pis connect to a VPN hosted in an EC2 instance. The Raspberry Pi essentially act as IoT devices and send images to an S3 bucket. I use Wireguard as a VPN because it is quite low and does not consume much CPU power on the Raspberry Pi or the host VPN.

My current network activity of 4 pi is about 500 kbps. So on average I can assume that every Pi chews around 125 kbit / s.

If I wanted to scale to a very large number, I would probably reach the 0.25 Gbps limit for the EC2 threshold, which would result in a network bottleneck in the system.

The most obvious solution would be to make the pi connection to another site, but this requires a different pi-group VPN URL, which would be logistically difficult.

Is there a way to automatically distribute the network load?

Networking – How to connect to an interface that hosts a virtual network on Linux

I am using VMware on a Linux host. The virtual machines in this network are connected via NAT, which in my opinion means that my Linux host acts as a router / DHCP server and leases IP addresses to them. On my host terminal ifconfig gives the following:

$ ifconfig
lo: Flags = 73  mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 :: 1 prefixlen 128 scopeid 0x10
        loop txqueuelen 1000 (Local Loopback)
RX packets 5386 bytes 18526190 (17.6 MiB)
RX error 0 fell 0 exceeded 0 frame 0
TX packets 5386 bytes 18526190 (17.6 MiB)
TX error 0 fell 0 exceeded 0 carrier 0 collisions 0

vmnet8: flags = 4163  mtu 1500
inet 192.168.166.1 Netmask 255.255.255.0 Broadcast 192.168.166.255
inet6 fe80 :: 250: 56ff: fec0: 8 prefixlen 64 scopeid 0x20
        Ether XX: XX: XX: XX: XX: XX txqueuelen 1000 (Ethernet)
RX packets 942 bytes 0 (0,0 B)
RX error 0 fell 0 exceeded 0 frame 0
TX packets 61 bytes 0 (0,0 B)
TX error 0 fell 0 exceeded 0 carrier 0 collisions 0

wlp1s0: flags = 4163  mtu 1500
inet 192.168.1.205 Netmask 255.255.255.0 Broadcast 192.168.1.255
inet6 2600: 6c40: 4500: 40f: 9e15: c6b2: 3231: ece3 prefixing 64 scopeid 0x0
        inet6 2600: 6c40: 4500: 40f: 0: 503f: 2af0: 9b2c prefixing 128 scopeid 0x0
        inet6 fe80 :: c3cf: 50e4: f85: fad6 prefixes 64 scopeid 0x20
        Ether XX: XX: XX: XX: XX: XX txqueuelen 1000 (Ethernet)
RX Packets 28165 Bytes 21865045 (20.8 MiB)
RX error 0 fell 0 exceeded 0 frame 0
TX Packets 17881 Bytes 2988789 (2.8 MiB)
TX error 0 fell 0 exceeded 0 carrier 0 collisions 0

I am currently connected to Wi-Fi via an interface wlp1s0it is possible to connect to the interface instead vmnet8? Specifically, I would like to be able to walk nmap and metasploit against the virtual machines from my host computer

Networking – Configure static routing on three routers using IPv6 and IPv4

I configured my home network as shown in the figure below. What I need is to be able to access the NAS from the other subnet.

Network Diagram

Two routers run Asus WRT and static routing can be added
The modem / router is a standard ISP cable modem with limited configuration options.

So on Router A, I've added a static route:

Host IP: 192.168.2.1
Netmask: 255.255.255.0
Gateway: 192.168.0.1
Metric: 2
Interface: LAN

On the router B:

Host IP: 192.168.1.15
Netmask: 255.255.255.0
Gateway: 192.168.0.1
Metric: 2
Interface: LAN

On the modem there is only one option to filter ports and IP addresses (this is identical to the static routes given above) and allows only IPv6 addresses at this point. So I added the following entries:

- Outbound:
Source: 2a02: a319: 8242: 8c00: 0: ffff: c0a8: 196/128
Target: :: ffff: 192.168.0.2 / 128
enable
- Outbound:
Source: 2a02: a319: 8242: 8c00: 0: ffff: c0a8: 201/100
destination: :: ffff: 192.168.0.3 / 128
enable

I've translated IPv4 to IPv6 addresses with an online tool. Are you not sure if I used it correctly?

As you may have guessed, my setup does not work (NAS can not be reached from outside its subnet). Any advice, what am I doing wrong?

How can I also debug such a config?