From 5f0f53eba1d0a49729f28cd66ce14ca73fadb06d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 11 May 2020 16:33:31 +0200 Subject: [PATCH] Updated default config --- RNS/Reticulum.py | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index 58d641c..a2bd30e 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -147,7 +147,7 @@ class Reticulum: interface = TCPInterface.TCPClientInterface( RNS.Transport, name, - c["target_ip"], + c["target_host"], int(c["target_port"]) ) @@ -371,14 +371,44 @@ loglevel = 4 # This interface enables communication with other # Reticulum nodes on your local ethernet networks. + # It's enabled by default, and provides basic + # connectivity to other peers in your local ethernet + # broadcast domain. You can modify it to suit your + # needs or turn it off completely. + [[Default UDP Interface]] type = UdpInterface interface_enabled = True outgoing = True listen_ip = 0.0.0.0 - listen_port = 7777 + listen_port = 4242 forward_ip = 255.255.255.255 - forward_port = 7777 + forward_port = 4242 + + + # This example demonstrates a TCP server interface. + # It will listen for incoming connections on the + # specified IP address and port number. + + [[TCP Server Interface]] + type = TCPServerInterface + interface_enabled = False + outgoing = True + listen_ip = 0.0.0.0 + listen_port = 4242 + + + # To connect to a TCP server interface, you would + # naturally use the TCP client interface. Here's + # an example. The target_host can either be an IP + # address or a hostname + + [[TCP Client Interface]] + type = TCPClientInterface + interface_enabled = False + outgoing = True + target_host = 127.0.0.1 + target_port = 4242 # Here's an example of how to add a LoRa interface @@ -418,6 +448,7 @@ loglevel = 4 # fastest, and 8 the longest range. codingrate = 5 + # An example KISS modem interface. Useful for running # Reticulum over packet radio hardware. @@ -463,6 +494,7 @@ loglevel = 4 persistence = 200 slottime = 20 + # If you're using Reticulum on amateur radio spectrum, # you might want to use the AX.25 KISS interface. This # way, Reticulum will automatically encapsulate it's