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
2 votes
1 answer
659 views

Problem with iptables - can't DNAT or use --dport

I have been having a few frustrating hours trying to get iptables to work. I have updated and upgraded my raspbian. I have iptables V1.4.14 installed. # iptables -A INPUT -i eth1 -p tcp -m tcp --...
Bryan's user avatar
  • 341
0 votes
1 answer
237 views

Connected to 2 networks cant access the internet

I am sitting with quite a predicament, I am the happy owner of a model B pi running a raspbian lampi distro. The pi is currently running a little php site which connects to a network of devices and ...
tottiemonster's user avatar
4 votes
1 answer
2k views

Routing ethernet connection over WiFi [duplicate]

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 ...
Taha's user avatar
  • 51
2 votes
2 answers
3k views

nat in the iptables is not recognized

I am trying to set up my Raspberry Pi as a Man In The Middle device to monitor devices on my home network. When I try to forward port 80 to port 8080 (to allow the webpage to be loaded on the device) ...
user avatar
0 votes
1 answer
6k views

After I remove swapfile, I can't do anything! How can I revert this problem?

How can I extend the life of my SD card? I run 2 commands in sudo su mode, and restart my pi. What I run: # swapoff --all # apt-get remove dphys-swapfile # reboot After that, I notice that I can't ...
Jerry's user avatar
  • 1
4 votes
3 answers
20k views

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 ...
user11257's user avatar
1 vote
1 answer
6k views

RaspBMC and OpenVPN: block traffic except VPN with IPTables

Current status: OpenVPN is up and runnning, ifconfig shows eth0, lo, tun0. To be achieved: Temporarily blocking all traffic via calling a bash script except all traffic in home network and all ...
user10512's user avatar
2 votes
2 answers
361 views

Write current IP adress eth0 to a file

I need to store the current IP adress of my Raspberry Pi into a file. Can someone tell me how to do this? The goal is to create a file in /var/www/ipadress.txt with this content: 192.168.0.28 $ ...
s3bi's user avatar
  • 160
1 vote
1 answer
8k views

Fedora - iptables rules change after reboot, iptables-save do nothing

So I'm setting a new fedora install on my raspberrypi (version: newest pidora). Everything works, except vnc, any connection attempts are rejected. So, as I'd like to make it working now and worry ...
user avatar
4 votes
2 answers
5k views

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/...
Cristian Diaconescu's user avatar
4 votes
2 answers
23k views

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 ...
Cristian Diaconescu's user avatar
6 votes
4 answers
58k views

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's user avatar

1 2
3