Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
2 answers
136 views

Routing packets from one wireguard client to another using iptables

This summarizes what I want to achieve: Phone (192.168.1.245) -> Raspberry Pi 1 (wg0 10.8.0.3, wlan0 192.168.1.174) -> VPS (wg0 10.8.0.1 VPN Server) -> Raspberry Pi 2 (wg0 10.8.0.110, wlan0 ...
Sebastian A's user avatar
1 vote
1 answer
162 views

Unable to forward and receive internet traffic through Raspberry Pi 4 Wifi AP

There are many tutorials out there showing how to set up a Wifi AP using Raspberry Pi 4, all with different configurations. I am trying doing it with my specific setup as following: RPi4 acting as ...
Tristan Tran's user avatar
0 votes
0 answers
48 views

Add foreign address to IP tables to Docker Image

I am new to Docker. I have a sample website running in a Docker Container and I am trying to access it from another computer on the network. tcp 0 0 localhost:3000 0.0.0.0:* ...
mike628's user avatar
  • 113
0 votes
1 answer
467 views

Can't reach home networked Linux computer, but it's up and has internet access, not sure how to trouble shoot [closed]

I have a home server set up on a Raspberry Pi running Dietpi / Debian. Everything worked fine and I provided several services to the home network, e.g. Paperless. The server has a static IP, which I ...
Nick's user avatar
  • 13
0 votes
1 answer
49 views

One computer (RPi CM4), 2 NICs, two separate networks

I have a RPi CM4 machine with 2 NICs. I want to be able to communicate with the main network on eth0 (192.168.1.x) and a separate network on eth1 (192.168.0.x). For the main network connection, IT ...
evanmars's user avatar
0 votes
1 answer
564 views

Proxy server with squid and multiple 4G routers

A particular Raspberry Pi 4 is connected to wlan0 (192.168.10.174) on a 4G router (192.168.10.1) and has a 4G mobile connection. Already on interface eth0 (192.168.1.41), is my local network router (...
Herbert Goes's user avatar
1 vote
0 answers
243 views

How to configure RPi to work as wifi access point that uses a Burp as a proxy?

I am attempting to use a Raspberry Pi Model B+ as a WiFi access point with the IP address of 192.168.0.1. This access point should redirect all HTTP and HTTPS traffic to a different machine with the ...
HackLikeDemons's user avatar
0 votes
1 answer
982 views

Unstable LTE connection with SIM7600G-H 4G HAT

I've used a RasperryPi 3B+ together with the SIM7600G-H 4G HAT module to build myself a home router. The HAT module is connected via mini-usb. I managed to setup the LTE connection using qmicli with a ...
William's user avatar
0 votes
1 answer
275 views

how can i access device on dhcp server from outer net

i made DHCP server on rpi with following settings: for interface eth1: interface eth1 static ip_address=192.168.1.1/20 static routers=192.168.1.0 and for dnsmasq.config interface=eth1 bind-interfaces ...
Three Strikes's user avatar
1 vote
1 answer
706 views

Iptables-restore does not work with SNAT

I am using Raspbian on a Raspbery Pi (based on Debian 10) and I'm trying to use the following line in my iptables rule set: -A POSTROUTING -s 2.3.4.5/26 -o eth0 -j SNAT --to-source 1.2.3.4 However ...
paymegood's user avatar
0 votes
1 answer
2k views

Iptables split traffic through VPN and home network

I am using an Raspberry pi as my router to serve my pc and an ioT device. The connection diagram is as below: network setup The RPi has two ethernet port, eth1 connected to my home network 192.168.1.0/...
cityzz's user avatar
  • 103
0 votes
1 answer
1k views

raspberry pi iptables forward DNS requests over VPN

I have used and slightly modified the rpi-wifi script to set up a WiFi access point while using the standard WiFi connections. All is good. I want to setup ExpressVPN and have all traffic go through ...
Nigel Johnson's user avatar
0 votes
3 answers
5k views

Creating a 1:1 NAT with iptables

I am trying to learn a bit about NAT translations in Linux, but I havent seen any proof-of-concept that was boiled down to as basic as possible. Anyway. Here is a drawing of my setup: I have a very ...
Lasse Michael Mølgaard's user avatar
0 votes
1 answer
254 views

Access Raspberry Pi behind a NAT firewall through Internet

I have been developing projects with Raspberry Pi 4. For the current project I am running a NextCloudPi server on it. I am able to access the server using my Internal IP. I want to access it using a ...
Rishab Kaushik's user avatar
0 votes
1 answer
786 views

Connect from a computer to a Raspberry connected in a second computer (RNDIS)

I have a Raspberry Pi attached to my laptop using the USB (RNDIS) so I can see the Raspberry Pi as a Network Card + Device. I can SSH from my laptop to the Raspberry Pi using the 192.168.64.1 IP. I ...
Oscar Vicente Perez's user avatar
1 vote
0 answers
265 views

Redirect all http traffic to static address in OpenWrt on Raspberry

I have an ISP router with IP 192.168.1.254. I installed OpenWrt on my Raspberry PI 3 B. Raspberry is connected to the ISP router via ethernet On the Raspberry I configured 2 networks: wan wifi ...
firegloves's user avatar
0 votes
1 answer
304 views

iptables guest network isolation not working

I have a raspberry pi setup as a router to serve a guest network. Setup as follows: Pi interface eth0 connected to local home network (192.168.10.0/24) through this network the Pi can connect to ...
Alkahna's user avatar
  • 103
0 votes
1 answer
531 views

IPtables not blocking wifi traffic on Raspberry Pi Access Point

I have an rPi running as a wireless AP for my IoT devices. I'd like to set up a firewall rule to prevent suspicious traffic (why would the camera need access to SSH?). The rPi is connected to my ...
Robert C's user avatar
0 votes
1 answer
265 views

Ethernet II frames have broadcast MAC as destination (when connected to Raspberry PI access point running Hostapd)

I am having some strange (and oddly inconsistent) issues setting up a Raspberry Pi 3 AP, using a USB WiFi radio & directional antenna for an upstream connection to my residential internet wifi ...
Jeff Shafer's user avatar
0 votes
1 answer
729 views

Connecting to a server on a different network controlled by a raspberry pi

I didn't really know how to phrase this question, but this is my setup. I've got my Router and wirelessly I've got a raspberry pi connected to it. Then the pi tunnels the connection from the wifi to ...
KillerXtreme's user avatar
26 votes
5 answers
58k views

iptables/1.8.2 Failed to initialize nft: Protocol not supported

I'm having a problem using iptables on my Raspberry PI. I've just downloaded a fresh version of Raspbian Lite on my PI and all I'm trying to do is check my iptables rules but it's not working and I'm ...
Kenan's user avatar
  • 261
2 votes
0 answers
281 views

Port Forwarding when using a Bridge and IPTables

I have a Raspberry Pi that I am using as a bridge to allow it to act as a router to devices attached to it either via a physical port (eth0) or a wireless connection (wlan0). The Raspberry Pi has a 4G ...
BoggyBumblebee's user avatar
0 votes
1 answer
269 views

iptables error while building docker image on raspberry pi (linux/ARM)

I have docker and docker-compose installed on my raspberry pi. While trying to build the following a docker-compose.yml I receive the an ip tables error during the building of a (linux/arm ported) ...
Ryan Lingle's user avatar
1 vote
1 answer
674 views

openvpn is blocking external request to webserver and ssh

My setup: Raspberry pi 3 OS: raspbian 9 (stretch) local network (eth0): 192.168.0.X wireless network(wlan0): 192.168.10.X This setup is behind a modem/router which provides access to the internet. ...
Adwen's user avatar
  • 11
1 vote
1 answer
2k views

Traffic Shaping (simulate packet delay and loss) on Linux Wi-FI Access Point

I have a Pi 3 B+ setup as Wi-Fi access point and would like to simulate packet delays and packet loss for connected devices communicating through the AP. I thought that I could achieve this using tc ...
user9773452's user avatar
3 votes
1 answer
862 views

Using Raspberry PI as OpenVPN router for Asterisk

So, I've been banging my head with this for quite some time. I have the following configuration: OpenVPN server, IP 1.2.3.1 Asterisk server, connected to OpenVPN server, IP 1.2.3.3 Raspberry PI, ...
dkasipovic's user avatar
-1 votes
1 answer
122 views

Onion Router Raspberry use only Lan and not Wlan

hello i have a tiny problem, i followd some tutorials, everything is working over the created wlan hotspot but i want change it thaht everything will goes over Lan, like the Raspi act as normal Router(...
StefanBD's user avatar
  • 101
4 votes
2 answers
4k views

Domain lookup issue from within network namespace

I need to bind one program to the wlan1 interface, all other programs by default should use wlan0. For this reason I configured dedicated network namespace: ip netns add wlan1_ns ip link add ...
Paweł Gutowski's user avatar
1 vote
1 answer
1k views

Internet speed slows down when using NAT on a Raspberry Pi single NIC router

I have a Raspberry Pi 3 B configured as a single NIC router, when i enable NAT via iptables then my internet will slow down by half of the maximum speed (75mbit of 150mbit) when I turn the NAT in ...
Michel's user avatar
  • 21
2 votes
1 answer
11k views

Cant SSH into server, not responding

Short intro: I have 2 servers. Home server and in remote location Raspberry Pi. Both are running ssh, postfix (rpi as backup), bind (home server for lan only), squid3, fail2ban and other (possibly not ...
Karls's user avatar
  • 51
0 votes
1 answer
327 views

iptables instead of changing browser proxy settings

I'm currently trying to set up a Raspberry Pi as a wireless access point, and want to run JonDo on it. JonDo acts as a proxy that redirects my traffic through a cascade of mixes, in order to hide my ...
heddha's user avatar
  • 1
1 vote
1 answer
42 views

Linux gateway using double data on AT&T, is my iptables wrong?

I have cellular internet connection with AT&T. Everyone connects to the wifi access point that I have my Raspberry Pi connected to as DNS/DCHP/Gateway server. On my Pi I use dnsmasq to give each ...
Randell's user avatar
  • 23
1 vote
1 answer
53 views

MedaiWiki server publicly inaccesible on Raspberry Pi

I'm having trouble publicly accessing a MediaWiki server that I have set up on my Raspberry Pi. I am getting a "connection timed out" error when trying to visit the server remotely. It is however ...
Max Gillett's user avatar
0 votes
2 answers
2k views

Traffic redirection with Rasperry Pi router

I use a Rasperry Pi (running raspbian) as a wi-fi router. It redirects traffic from the Ethernet wire (eth0 - wire + ppp0 - L2TP connection, lx2tp used for it) to wlan0 (USB wi-fi dongle, hostapd used ...
Igor Shalyminov's user avatar
1 vote
1 answer
994 views

Using iptables to allow LAN and drop WAN of unknown devices

I posted this over on stackoverflow but it was off-topic. I have looked around and couldn't find the answer to my question. I am using a raspberry pi as an internet gateway between my LAN and two ...
Randell's user avatar
  • 23
2 votes
1 answer
2k views

iptables - UDP Packets from unknown IP addresses

I'm really new to basic systems administration, and this question is a bit difficult for me to Google. I'm setting up a small raspberry pi server for my own personal use, to teach myself some basic ...
AStupidNoob's user avatar
0 votes
1 answer
143 views

Run shell script on incoming network package

I have a bit of a weird question. I have a setup where a Raspberry Pi (running that debian) sits next to a door in my office and is connected to the network. The idea now is that if somebody inside ...
AreusAstarte's user avatar
1 vote
1 answer
3k views

Can't ping through default gateway

I have the following configuration: Routing table on M3 is: Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 ...
Andrew-George Hondrari's user avatar
2 votes
2 answers
14k views

Forward connections on 0.0.0.0:80 to 127.0.0.1:9091

I'm trying to set up a tor-relay. In order to allow tor to present a static web page explaining what it is I want the server to listen on port 80 and 443. In order to allow tor to use accounting/...
azzid's user avatar
  • 531