Re: loop back iptables
On Tue, Oct 08, 2013 at 03:04:14PM -0700, james gray wrote:
> working with Debian 7.0
>
>
> working with the examples at
>
> https://wiki.debian.org/iptables
>
>
> when i write a example for a lo0 table as shown
>
> -A INPUT -i lo -j ACCEPT
>
>
> and follow procedure of
>
> iptables-restore < file-name
>
>
> i do receive a message "line failed" for that line as shown above.
>
>
> Question: do i need to config a file.
>
>
> staying in the environment of the istalled Debian 7.0 and doing apropos
> loopback shows alsoloop.
>
> doing internet searching shows a lot of info as if a bomb droped from the
> sky - but who knows if it is or could be debian 7.0 specific.
First, you should probably avoid doing anything to a loopback
interface...
Next, you'll need to copy the entirety of the grey area example
to a file, and use that file name in the iptables-restore. It's
a very specific format.
If you want to test individual rules, you could do this at the
command line:
iptables -A INPUT -i lo -j ACCEPT
and then
iptables -L
to see if it took.
There is nothing Debian-specific going on here.
-dsr-
Reply to: