iptables change?

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

iptables change?

Post by ayu »

For some reason I have had large issues with adding iptables-restore to the interfaces file in ubuntu lately, since 8.10 I have had this issue, and I'm using 9.04 beta now.

Either the iptables simply doesn't load, or it fucks up the network interface completely (normal, happens when you add it on the wrong part of the file).

Anyone else noticed anything, and maybe can tip me of what the heck is happening? :?
"The best place to hide a tree, is in a forest"

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

ok so ... now when I add it like usually (seems the system couldn't reach the directory I put the file in before due to encryption, so I moved it) it works, but my network manager displays that I have no connection even though it works. Does the network manager use any special port that I should be aware of? Or did I screw something else up? ^^

Current interface file:

Code: Select all

cats@enma:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
pre-up iptables-restore < /iptables
cats@enma:~$ 
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hmm...can't see anything wrong in it, only the / in /iptables confuses me a little..... :-k what is syslog saying?

but here's another idea:
you could set the command to restore iptables in the Gnome session manager....go to System-> Preferences-> Sessions->Startup Programs and add a new entry to restore iptables.
I am not sure, but it could be that it'll not start when Gnome isn't starting (when you boot into textmode)...but that's not too bad imo.

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

I placed the iptables file in root for the moment
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

ah, ok...

Post Reply