RaspberryPi-projects | My Collection of Raspberry Pi projects
kandi X-RAY | RaspberryPi-projects Summary
kandi X-RAY | RaspberryPi-projects Summary
Raspberry Pi Projects is mostly how to documentation for a wide variety of projects. All the code for those projects may be found in the various folders. View the documentation pages at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Provide basic information
- Convert a gzda string to a dictionary
- Extract the GPZDS from the object
- Connect to GPS
- Get the device name for GPS
- Return the revision number
- Check if a serial port is available
- Activate switch
- Shutdown channel
- Cleanup GPIO pins
- Disconnect the gps device
- Shutdown a channel
- Toggle wpa
- Runs a command
- Start the timer
- Start an iface
- Loop through the rc pin
- Print out network information
- Get network interfaces
- Get the temperature in the bus
- Convert temperature to temperature
- Get the temperature of the given address
- Convert the specified address to the device
- Cleanup GPIO
- Install an interface
- Start the worker
RaspberryPi-projects Key Features
RaspberryPi-projects Examples and Code Snippets
Community Discussions
Trending Discussions on RaspberryPi-projects
QUESTION
I want to route incoming tcp traffic on port 5555 on a Raspberry with Raspbian to another machine and port within the same local network, and make it persistent to reboots.
ContextThe objective is that if I access the service on 5555 on localhost, it will load a different port on the remote machine. The ultimate goal is to forward port 53 (DNS) into another machine (non-53 port), but in the meantime, I am testing with http: https://localhost:5555
, it should load https://192.168.250.250:9999
where 192.168.250.250 is a remote machine within my local network (accessible to all local network, ping 192.168.250.250
works).
There's a lot of resources on networking like this. Most rely on IP Forwarding on the router, which won't work in my case as I am trying to redirect ports within hosts in my localhost accessing the machines directly. The others, for port tunnelling, all use the methods below:
iptablessudo iptables -t nat -A PREROUTING -p tcp --sport 5555 -j DNAT --to-destination 192.168.250.250 --dport 9999
This didn't work. I tried a few variations, including:
sudo iptables -t nat -A PREROUTING -p tcp --sport 5555 -j DNAT --to-destination 192.168.250.250:9999
This didn't work, despite the rule getting registered:
...ANSWER
Answered 2021-Jan-23 at 23:19The up tables solution should work. However, you must check your ipv4 forwarding and enable it (most linux distros will have this as not enabled/allowed) and this is likely to be your problem.
Check this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RaspberryPi-projects
You can use RaspberryPi-projects like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page