Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [iptables]

is a user-space application to configure the Linux kernel firewall tables. These tables contain chains of rules defining the treatment of network packets.

39 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
1 answer
10k views

Open Splash Page After Connecting to Wifi Hotspot

I'm using my pi3 to display a local "website" as described here Making a Raspberry Pi 3 accessible w/o configuration via WiFi and static IP/URL. Therefore, I'm creating a hotspot with the pi. This ...
Andi Giga's user avatar
  • 543
3 votes
0 answers
7k views

Setting up a Huawei LTE stick e3372 on a raspberry

I have just taken over a project from a colleague so I am not 100% sure what this pi have been up to before. Anyways, my task is to setup a Huawei LTE usb Stick (E3372) as a modem for the raspberry ...
jimmy's user avatar
  • 131
1 vote
0 answers
286 views

How to configure RPi to work as wifi access point that uses 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
1 vote
0 answers
72 views

Can iptables be used to monitor a specific host and port without being a gateway or access point?

I have a Pi 3B+ that I want to use to monitor traffic forwarded from the router to another host (and a specific port) on the network. I am currently using the ethernet interface on the Pi to connect ...
MattR's user avatar
  • 31
1 vote
0 answers
168 views

connecting a LAN device to openvpn through raspberry pi network bridge

hi i have recently set up a raspberry pi to be a network bridge for my router to my room as i thought it would be quicker to do than wait for the delivery of a plug in network adapter in this lock ...
funkbanana8's user avatar
1 vote
0 answers
383 views

Using Hamachi messes up with the Pi's networking

I have a Raspberry Pi 3B+ running Raspbian Stretch with no problems since over a year. I recently tried install Hamachi from the official LogMeIn website, and connected it to my LogMeIn Hamachi ...
HerrCrazi's user avatar
1 vote
0 answers
238 views

TOR Relay, Routing not working Properly

So I have been trying for a while now using this guide https://pimylifeup.com/raspberry-pi-tor-access-point/ . About 2 years ago I was able to do this, but my SD card corrupted and I had to do it ...
Martin Bradley's user avatar
1 vote
1 answer
685 views

Using cgroup module in iptables cause "no chain by that name" error message

Trying to use cgroup module in iptables rule cause "No chain/target/match by that name" message. I'm using: Linux raspberrypi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux ...
N1ghtwish's user avatar
1 vote
0 answers
198 views

iptables doesn't recognise REDIRECT as target

Trying to redirect traffic using iptables v1.6 and the following line: iptables -t nat -A PREROUTING -p udp --dport 67 -j REDIRECT --to-port 6767 which results in the following output: iptables: No ...
eto.ttnflt's user avatar
1 vote
0 answers
2k views

cannot forward from wlan interface to another wlan interface

I have two wlan interfaces: wlan0 wlan1. wlan0 is an AP managed by hostapd, where as wlan1 is a normal wifi interface, which is connected to my home router via wpa_supplicant. Additionally I have my ...
Scrumplex's user avatar
  • 123
1 vote
0 answers
180 views

FTP connection broken after configuring iptables on Raspbian

So I managed to get a configuration of iptables that suits my needs, primarily based on 2+ hours of research and reading similar Stack Exchange and forum posts. However, this seems to have broken my ...
ThatGuy's user avatar
  • 111
1 vote
0 answers
123 views

Is there a way to set up a tor-ap and be able to turn tor routing off when needed?

I recently turned my raspberry pi into an AP and am wanting to follow the directions here https://learn.adafruit.com/onion-pi/overview. However, after reading the section here https://learn.adafruit....
chaoticslacker's user avatar
1 vote
0 answers
138 views

rPI access point devices can't see upnp devices, but can access by ip. Missing iptable or incorrect interface setup?

I posted yesterday, but forgot my login, sorry guys :( I setup a basic wireless access point to access my ethernet network from my wifi devices not near it. I can access devices by ip just fine, but ...
user1120389's user avatar
1 vote
0 answers
523 views

forwarding ports from eth0 to wlan0

I have a raspberry pi 3 which is set up as a wifi ap using hostapd and dnsmasq sharing the eth0 which is connected to an ADSL modem. My laptop is connected to this wifi ap. I have set up vnc servers ...
Jonathan Smith's user avatar
1 vote
0 answers
723 views

Raspberry Pi Tor router without WLAN

I have Raspberry Pi 1 model B+ with Raspbian Wheezy. I bought a USB2-Ethernet adapter and decided to create hardware Tor routing. What I mean by hardware routing: The Raspberry Pi will be in middle ...
Avaruuskadetti's user avatar
1 vote
0 answers
562 views

10 second delay on Post Request from Midori with node backend server

I have a RaspberryPi that runs a small web-application on it. It is auto-loaded on boot in midori (kiosk mode) and a small timer runs on it (updated every second). This works all right. Now, the ...
SebasZil's user avatar
  • 175
1 vote
0 answers
293 views

Raspbian can't forward port to a ip in lan

I have a problem: I have a DVR connected to my router and I want to access it from remote but in my country there aren't ISP that offers free ports. So I bought a Raspberry Pi, connected it to Hamachi ...
alex3850's user avatar
0 votes
1 answer
30 views

How do I block access to my Raspberry Pi outside of Pivpn Wireguard VPN?

I am running a PiVPN Wireguard installation on my Pi. I have multiple docker services running on the Pi as well. My setup works. I can connect to my VPN and access all the services. The problem is ...
Aniansh's user avatar
  • 51
0 votes
0 answers
21 views

Wireguard breaks internet access on my pi

Wish to use my raspberry pi as a wireguard server. connecting Pi to my router via Ethernet cable, Router assigns pi ip 192.168.1.35 Confirmed the pi now has internet access by using laptop to SSH into ...
Rachel1983's user avatar
0 votes
2 answers
27 views

Connect with two wifi adapters to networks where in each is a device with same IP

I want to connect to my two Huawei inverters. Each has a wifi that I can connect to and I have the built-in wifi and an additional USB wifi. If I connect to each individually the inverter is 192.168....
Thomas's user avatar
  • 1
0 votes
0 answers
44 views

Raspberry as a bridge between networks

How I have to configure iptables for redirecting traffic between wlan0 to eth0 of a raspberry pi? In my scenario eth0 is the interface connected to the home LAN with static ip 192.168.1.199, wlan0 is ...
user avatar
0 votes
0 answers
140 views

Network routing between wlan0 (access point) and wlan1 (internet connection) not working

for the past three days I have been trying to create a WiFi relay with my PiZero to then make into a Tor Router following a variety of guides online. I am using the built-in wlan0 as the access point ...
underAlex's user avatar
0 votes
0 answers
74 views

"IP forbidden" for Raspberry Pi, but not for laptop, after home IP change

The problem Recently my ISP gave my home a new IP address. I run a program on the Raspberry Pi that connects to some external APIs that have my home IP address whitelisted. After the IP change, a few ...
minitauros's user avatar
0 votes
0 answers
303 views

Vulnerability Scanner for IoT Devices using raspberry Pi

It's my final year project to develop a Vulnerability Scanner for IoT Devices, Here is the proposal of that project "The goal of this project is to put a vulnerability scanner on a Raspberry Pi ...
MubashirKhan's user avatar
0 votes
0 answers
370 views

Installed WireGuard by PiVPN now PiHole DNS not responding. How to troubleshoot?

Recent fresh Raspbian installation August 2021. RP4, wired ethernet connection. pi@raspberrypi:~ $ cat /etc/debian_version 10.10 Summary of Steps: Installed PiHole: curl -sSL https://install.pi-...
NoahR's user avatar
  • 101
0 votes
0 answers
2k views

pivpn install - fails to install iptables-persistent

Installation of pivpn fails due to missing iptables-persistent. Command (run as root) is curl -L https://install.pivpn.io | bash and result is % Total % Received % Xferd Average Speed Time ...
Paul Abraham's user avatar
0 votes
0 answers
41 views

What does the iptables related operation in step 11 and 7 of this tutorial do?

this tutorial: https://calap.co/blog/how-to-use-raspberry-pi-as-a-vpn-access-point--2018-10-27.html shows how to turn an raspberry pi into a VPN hotspot. I find the iptable configs at step 7 and 11 ...
cream_pi's user avatar
0 votes
0 answers
704 views

Raspberry Pi Router: NAT & iptables --to-destination is not recognized

I'm struggling to get NAT working on my Raspberry Pi as I intend. Without giving a lot of information, this is the issue I encounter $ sudo iptables -t nat -A PREROUTING -p tcp -i wlan0 --dport 2222 ...
user3728501's user avatar
0 votes
0 answers
38 views

Cannot manage wlan0 from desktop

Good day all Pi folks! I have a Pi 3A (buster) which has the onboard Wifi (wlan1) configured as an access point. I installed a second Wifi USB TL-WN725N which comes up as wlan0 and is the outside nat'...
keith bradley's user avatar
0 votes
1 answer
250 views

Buster: Route traffic eth0<>wlan1

I followed these excellent and simple instructions to set up a WiFi repeater on Buster: [Access point as WiFi router/repeater with additional WiFi-dongle However when I rebooted the eth0 access was ...
Gnarlodious's user avatar
0 votes
0 answers
364 views

Cannot connect Deluge Thin Client to RPie Deluge Server

I'm trying to setup my RPi 3 (buster) with a deluge server and a VPN (Private Internet Access) I have followed theses guides https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=223589 https:/...
Thierry Roy's user avatar
0 votes
0 answers
100 views

Log input traffic using iptables

Is it possible to log input traffic coming to wired Ethernet port using iptables, without syslog running? I want to know about appearance of particular MAC address WiFi node in range of my home WiFi ...
mackowiakp's user avatar
0 votes
0 answers
643 views

Raspbian Stretch iptables: Can't redirect all requests to localhost on pi

I have a private hotspot running on the raspberry based on RASPAP, which is working perfectly. Now I wish to automatically direct all the users who connect to this wifi towards a locally hosted ...
Mohsin Anees's user avatar
0 votes
0 answers
877 views

Raspberry Pi 3 WiFi to WiFi Access Point not forwarding traffic to Internet

I followed this guide https://pimylifeup.com/raspberry-pi-wireless-access-point/ on how to setup an Ethernet to WiFi access point using the built in RPi WiFi adapter successfully. I connected my phone ...
chrislacey's user avatar
0 votes
0 answers
350 views

Only allow ssh from 192.168.XXX.XXX

How can I only allow ssh access from the local network (192.168.X.X) and drop all requests from the internet? What is the best option? adding an iptables rule or modifying the /etc/hosts.allow ?
ECII's user avatar
  • 161
-1 votes
1 answer
526 views

How to get the iptables logs when Rpi act as router between ETH1 and ETH0

I have setuped my RPI following the post Sharing the Pi's WiFi connection through the Ethernet port I want to be able to have to source ip, source port, source mac, dest ip, dest port logged by ...
nicolas bergmann's user avatar
-1 votes
1 answer
409 views

Using the Raspberry Pi and OpenVPN

I have had a burning issue with my VPN setup and I am hoping someone will be able to help, or advise. So I currently have a DD-WRT router with an OpenVPN client setup serving my devices. However the ...
Tim's user avatar
  • 1
-1 votes
1 answer
3k views

Error installing iptables-persistent

I tried to install iptables-persistent without success. I checked the dependent packages and tried to install them manually but it is also not working. What I tried: sudo apt-get install iptables-...
Pedro Rio's user avatar
-2 votes
1 answer
103 views

iptables blocking access to a service (Cloud9)

I want to create a Cloud9 server using a raspberry pi. I download the repository and it ran just fine in the port 8181 as it shows below. I could even access the panel from the Raspberry using ...
Gustavo Cesário's user avatar