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.

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
7k 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 ...
3
votes
0answers
6k 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 ...
1
vote
1answer
188 views

is iptables broken or is it a kernel related issue?

I am trying to setup an access point on a raspberry pi 3 v1.2 using this repository create_ap with this Wifi adapter Bus 001 Device 005: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n ...
1
vote
0answers
16 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 ...
1
vote
0answers
79 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 ...
1
vote
0answers
78 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 ...
1
vote
1answer
152 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 ...
1
vote
0answers
74 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 ...
1
vote
1answer
267 views

RaspberryPi VPN Router (eth0) works in Wired connections but not in Wireless ones

I have this following setup: Office Network: 192.168.9.x --> Subnet for all Wired Connections 192.168.9.1 --> Wired Gateway IP 192.168.10.x --> Subnet for all Wireless Connections 192....
1
vote
0answers
988 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 ...
1
vote
0answers
130 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 ...
1
vote
0answers
103 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....
1
vote
0answers
118 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 ...
1
vote
0answers
482 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 ...
1
vote
0answers
632 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 ...
1
vote
0answers
459 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 ...
1
vote
0answers
276 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 ...
0
votes
0answers
39 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 ...
0
votes
0answers
56 views

Ubuntu Server > Static IP and VLAN

I need to add VLANs to my raspberry PI 4 First, in my version of ubuntu server, I don't have interfaces.d but 50-cloud-init.yaml so far I did this : ubuntu@ubuntu:~$ sudo mv /etc/netplan/50-cloud-...
0
votes
0answers
30 views

PiVPN client cannot access internet but can remotely access local storage

i have setup PiVPN. Before setup, im connected to dedicated ip purevpn (just to use open port service for openvpn). The problem is, the openvpn client can connect to config file and can access to ...
0
votes
0answers
28 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'...
0
votes
1answer
121 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 ...
0
votes
0answers
199 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:/...
0
votes
0answers
32 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 ...
0
votes
1answer
278 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 ...
0
votes
0answers
450 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 ...
0
votes
0answers
699 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 ...
0
votes
1answer
356 views

Routing network through 3 interfaces

I got a Raspberry Pi 3 which I haven't used in a while, and have decided to boot it up with its built-in wifi card as its own Hotspot, and the official Raspberry Pi Wifi Dongle as an interface to my ...
0
votes
1answer
2k 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-...
0
votes
0answers
311 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 ?
-1
votes
1answer
269 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 ...
-2
votes
1answer
27 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 ...