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.

Filter by
Sorted by
Tagged with
0
votes
2answers
64 views

Redirecting Traffic to local mqtt server

I am really confuse about how to redirect. I have 2 WLANs, one use to connect to the router(wln0) and one the I use as AP(wlan1). My aim is to redirect traffic from one client connected to the AP that ...
1
vote
1answer
191 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 ...
0
votes
1answer
202 views

How do I fix iptables -L error: operation not supported

I have all the newest software. Downloaded the official image yesterday. apt-get upgrade apt-get update rpi-update ..... rebooted, of course Does not help. root@raspberrypi:/home/pi# iptables --...
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
59 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-...
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 ...
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 ...
1
vote
1answer
84 views

Use the RPi3 with Libreelec to route between 2 networks

I'm using Libreelec on a RPi3 and I would like to use it to route between eth0 and wlan0 too. Network A - 192.168.0.0/24 with Internet access, connected to eth0, my network Network B - 192.168.1.0/24 ...
1
vote
1answer
221 views

How to setup my Pi to proxy all LAN traffic through wifi?

I am quite new to linux and Raspberry Pi world and networking in general. I would like to add a VPN on my Pi, connect my XBOX to my Pi using LAN and have it act as a gateway of sorts so my XBOX is on ...
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'...
2
votes
1answer
159 views

AP Bridge VPN IPTABLES rules needed

I have set up an access point with a bridge (bridge: I want to be able to access all other devices within my network) using this How-To (Setting up a Raspberry Pi as an access point - the easy way). ...
5
votes
1answer
1k views

Problem with iptables on buster - neither legacy or nft work

I recently installed buster on a Pi 3 Model B. Trying to setup a von (using pivpn) I realised that iptables is not working. I've learned that there's legacy mode and nft. Here's part of the output ...
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 ...
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 ...
3
votes
1answer
196 views

OnionPi - No internet connection after adding Iptables rules

I need some help or advices since I've not know what could I do to fix this issue. I've built an onion pi following the adafruit tutorial. This basicly is a wifi hotspot that routes all traffic ...
1
vote
1answer
108 views

Need help for iptables/filter

Setup: RPi connected to router using ethernet on subnet 192.168.0.0/24 which is also an access point access on subnet 192.168.43.0/24 So basically devices will connect to my Rpi for VPN traffic I ...
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 ...
-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 ...
1
vote
1answer
246 views

Help in setup for RPi3 for internet connection sharing to eth0 and wlan0 (from eth1)

I have already setup the RPi3 for share my internet connection (from eth1 usb ethernet dongle) to my eth0 (Rpi3 internal ethernet port). The "ASCII diagram" is this: Internet -> Fiber Router (192....
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:/...
1
vote
1answer
1k views

PiVPN client cant connect to local network

I've managed to setup PiVPN on a Raspberry Pi 3+ and I can connect from the outside, I even have Internet access, but I don't have access to the local network. These VLANs are created under my USG ...
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 ...
1
vote
2answers
161 views

How do I forward port 19132 from a subnet on eth0 to wlan0?

So I currently have a Minecraft server running on a computer in my house and would like to port forward it. However, the computer is in a separate room to the router and doesn't have WiFi. In order to ...
0
votes
1answer
170 views

Pi is listening but nothing except ssh can connect

Ok, so I'm stumped. I have a new Raspbian install on a Model B Rev 2 and I can ssh using the IP Address just fine, but I can't connect on any other port outside the pi. Some details: pi@dogwood:~ $ ...
2
votes
1answer
486 views

How to allow access from OpenVPN set on eth0 to wlan0

So I have the following configuration: +---------------------+ +----------------------------------+ | 10.10.10.* | | 192.168.100.*...
1
vote
2answers
356 views

How to connect a ethernet device(having its own static I.p and netmask) via internet by my laptop?

I have a device which is used to monitor analog sensor data(Micron optics sm130 ) with ethernet port available. Its works fine if If I connect it with my laptop using ethernet cable and by configuring ...
1
vote
1answer
177 views

How to connect a ethernet device(having its own static I.p and netmask) wirelessly by my laptop?

I have a device which is used to monitor analog sensor data(Micron optics sm130 ) with ethernet port available. It has Static IP as 10.0.0.126 Netmask as 255.255.255.0 DHCP server disabled Its ...
6
votes
2answers
5k views

Raspberry Pi DHCP Server: clients not getting IP addresses

I am relatively new to networking, so please bear with me. For a purely educational project, I've set up a network where the Raspberry Pi 3 running Raspbian Stretch is to function both as a router and ...
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 ...
0
votes
0answers
22 views

How can I gain internet access after a valid login? [duplicate]

I set up my iptables on my raspberry pi to redirect ALL traffic to localhost where my landing page is hosted, so that people on my AP can't access internet without logging in(correctly) first. On the ...
1
vote
1answer
2k views

How can I redirect HTTP requests to my captive portal/webserver using iptables

I'm working on a project where we need to use the RPi as a Wifi access point, which I got to work. I can get on the internet through the RPi and can also connect my Apache webserver (which should be ...
-1
votes
1answer
270 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 ...
0
votes
1answer
300 views

Raspberry Pi not blocking sites based on iptables rules

I am working on a network security project that can inspect network traffic before forwarding and accepting traffic from the internet. I have a R-Pi B+ Model running raspbian stretch lite where the ...
4
votes
2answers
297 views

Raspberry Pi Wifi Repeater – Block Ads

I configured my raspberry pi as a wireless repeater (using hostapd and dnsmasq). Now I wonder how I could use it to block known ad-servers? What would be the best way? Using iptables? Or setting up ...
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....
2
votes
1answer
350 views

How does 'iptables rules table' work with hotspot?

I'm using iptables rule for censorship. I created hotspot.When I try to connect website on raspberry with mother network, It's working. But I try on pc with hotspot my iptable rules isn't working. ...
4
votes
1answer
3k views

VPN Passthrough two ethernet interface

I'm a quite new in the network my internet acces have a proxy so to by-pass it I use a VPN hosted on my VPS. I use the OpenVPN Client software for all my devices. (Windows, Android, Linux) I got a ...
0
votes
1answer
719 views

Iptables and reverse ssh tunnel to connect with IP camera

I need to be able to access an IP camera that is on the same local network as a raspberry. I do not have access from the outside because it is a mobile data network that does not give me public IP or ...
0
votes
1answer
140 views

Forward port (80) to another local network IP

I have a Rpi, which is behind NAT (4G carrier), but I've managed to expose ports to be accessible from the internet using https://www.remot3.it. I want to use the Rpi as proxy, so I can access a IP ...
1
vote
1answer
2k views

Can't ping certain devices on my network [closed]

I've got a rather odd problem. The Raspberry Pi is connected fine to the internet i.e. I can ping google.com and browse the web without any problem. However, the problem for me is that I am unable to ...
1
vote
1answer
218 views

Make a program to run on a specific network interface?

Short question: How can you make only one specific program run off wlan0 and leave everything else to run off the ethernet? Long question: I've been using my Raspberry Pi for a while now and I love ...
0
votes
0answers
451 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
1answer
444 views

Faking an internet connection on an access point

I'm working on a project where a Raspberry Pi creates its own access point running a Flask server, but will not have an internet connection. I set up the iptables so that when the user tries to ...
2
votes
2answers
18k views

Edit iptables to open a port the safest and easiest way (nano?)

I have this web application called HaasBot (running on Mono 5) which I want to run on my Raspberry Pi 3 with Raspbian Stretch Lite (Terminal only!) as a server internally in my network only. Using SSH ...
0
votes
2answers
1k views

How to redirect IP network to specific interface

I'm developping an app for Android Things DP4 on Rpi3. I need my Rpi to send packets with destination IP in the network 10.110.2.0 with the interface wlan0 and packets with destination IP in the ...
0
votes
1answer
498 views

Windows Ping Problem

I seem to be having a strange problem with my Raspberry Pi - I can ssh to the Pi, but the Pi cannot ping the computer I am ssh'ing from (Windows firewall allows ICMP packets). I have the Pi configured ...
2
votes
2answers
594 views

How can I activate UFW on my Raspberry Pi 3 B without risking to lock myself out?

I want to activate UFW on my Raspberry Pi 3 B as I have used it previously on another machine and was quite content with that software. I have already downloaded UFW but I need to make sure that I ...
1
vote
1answer
381 views

Prevent traffic from specific IP from routing through OpenVPN

I am using a Raspberry Pi 3 as a WiFi access point, which routes all traffic through the tun0 interface/OpenVPN. However, I'd like to be able to route traffic from a device with the IP 172.24.1.126 on ...