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.

114 questions
17
votes
4 answers

How to open a Raspberry Pi Linux port?

I need to open TCP port 25 on my Raspberry Pi 3. I watched videos on the internet re. iptables, nothing has worked. If you have a solution, using iptables or another method, that would be great. If you want to know, I'm building an SMTP mail…
Millefeuille
  • 191
  • 1
  • 1
  • 6
9
votes
2 answers

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 a DHCP server. The intention is to have a…
Flux
  • 279
  • 1
  • 3
  • 11
8
votes
1 answer

iptables: nat table does not exist

I'm trying to do some NAT on my Raspi 2 running Raspbian. But when I try to do anything with the nat table in iptables, I get the following error: iptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to…
Cnly
  • 183
  • 1
  • 1
  • 4
8
votes
1 answer

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 from hostctl and what I get when I run either…
Bryan
  • 341
  • 1
  • 2
  • 8
7
votes
4 answers

How can I disable raspbmc's firewall for SSH access?

I want to be able to SSH into my Raspberry Pi from an external IP address. Right now, this doesn't work, due to raspbmc's firewall. How can I disable this firewall?
Exeleration-G
  • 303
  • 1
  • 3
  • 10
6
votes
1 answer

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 hotspot has no connection to the internet. Thus,…
Andi Giga
  • 541
  • 1
  • 7
  • 17
4
votes
2 answers

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 an dns-server, which blocks the evil adresses?
jake
  • 1,367
  • 1
  • 11
  • 23
4
votes
1 answer

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 Raspberry Pi and i would like to use it like a VPN…
Misteralex007
  • 41
  • 1
  • 2
4
votes
2 answers

Configure the port knocking server (knockd)?

I'm trying to configure port knocking on my RasPI running Raspbmc, using knockd. Here's what I've done: sudo apt-get update sudo apt-get install knockd ...then edited the files: /etc/default/knockd : # PLEASE EDIT /etc/knockd.conf BEFORE…
Cristian Diaconescu
  • 425
  • 3
  • 7
  • 17
4
votes
2 answers

How to restore the original iptables configuration?

I use RaspBMC as OS which stores its "persistent" iptables configuration in /etc/network/if-up.d/secure-rmc and I presume it's applied when the eth link goes up (e.g. after boot). If I futz with the rules in the console, how can I reload the…
Cristian Diaconescu
  • 425
  • 3
  • 7
  • 17
4
votes
1 answer

IPv4 forwarding from RPi 2 to RPi Zero via OTG cable

I am trying to use my Raspberry Pi Zero together with my Raspberry Pi 2 and I want to share network access from my Raspberry Pi 2 to my Raspberry Pi Zero. I can easily create a local network connection between my Raspberry Pis, but I have a problem…
Linus
  • 529
  • 1
  • 7
  • 17
4
votes
2 answers

RPi as Internet Gateway/Bridge

Can I use RPi as Internet Gateway/Bridge, with the possibility to control the network bandwidth depending upon local IP? I would like to setup as follows, and I tried the tutorial at…
Snazzy Sanoj
  • 437
  • 1
  • 5
  • 11
4
votes
3 answers

Performance of a raspberry pi as a firewall

I am thinking of setting up a raspberry pi inside a private network to act as a firewall for all incoming/outgoing traffic in that network. The idea would be to have a router connected to the network and connect the pi (along with all other devices)…
ByteFlinger
  • 153
  • 1
  • 4
4
votes
1 answer

Routing ethernet connection over WiFi

I have a situation which requires routing the connection from wlan0 to eth0 over the same network. The reason behind this, is that I would want to be able to connect to a device connected to the RPi over eth0, but through wlan0, so the RPi acts as a…
Taha
  • 51
  • 1
  • 4
4
votes
3 answers

How to make Pi an AP with 2 WiFi adapters?

I got a question. How to make Pi to be an AP with 2 wifi adapters, one wifi adapter is used to connect to the router, and another one is used to be an AP ? How to do this ? By the way, I have realized that make an AP with eth0 and wlan0, using…
user11257
  • 41
  • 1
  • 1
  • 3
1
2 3 4 5 6 7 8