jerremy-tamlin
November 18th, 2008, 10:43 AM
Hi all,
I ran into a wall (or a dark forest rather, there are no walls in linux) trying to open the right ports to connect to my uni's vpn and network.
I tried using firestarter and guarddog but had no joy, the ports the uni told me I needed to open weren't the only ones that I needed. I thought I'd have a go at going down to a more core level and try manipulating the iptables directly. So I hit the tutorials and docs and learnt enough about iptables to setup a basic firewall. In the process I had to uninstall firestarter because it kept fighting with me and changing the iptables it's self, even when I wasn't starting it.
Anyway I managed to setup the following basic iptables firewall, and it WORKS GREAT! I'm just a little concerned that perhaps it's not very secure.
Can anyone tell me if there are huge holes in it?
Laptop:~$ sudo iptables -L -v
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
2411 80062 ACCEPT all -- lo any anywhere anywhere
3664 2980K LOG all -- any any anywhere anywhere state RELATED,ESTABLISHED LOG level debug tcp-sequence tcp-options ip-options uid prefix `iptables-JW ESTABLISHED '
3664 2980K ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
135 17483 LOG all -- any any anywhere anywhere LOG level debug tcp-sequence tcp-options ip-options uid prefix `iptables-JW DROPPED '
135 17483 DROP all -- any any anywhere anywhere
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 6110 packets, 696K bytes)
pkts bytes target prot opt in out source destination
Is there a danger in accepting all outbound traffic or all established/related connections?
This is on a personal laptop that only I use.
Cheers
I ran into a wall (or a dark forest rather, there are no walls in linux) trying to open the right ports to connect to my uni's vpn and network.
I tried using firestarter and guarddog but had no joy, the ports the uni told me I needed to open weren't the only ones that I needed. I thought I'd have a go at going down to a more core level and try manipulating the iptables directly. So I hit the tutorials and docs and learnt enough about iptables to setup a basic firewall. In the process I had to uninstall firestarter because it kept fighting with me and changing the iptables it's self, even when I wasn't starting it.
Anyway I managed to setup the following basic iptables firewall, and it WORKS GREAT! I'm just a little concerned that perhaps it's not very secure.
Can anyone tell me if there are huge holes in it?
Laptop:~$ sudo iptables -L -v
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
2411 80062 ACCEPT all -- lo any anywhere anywhere
3664 2980K LOG all -- any any anywhere anywhere state RELATED,ESTABLISHED LOG level debug tcp-sequence tcp-options ip-options uid prefix `iptables-JW ESTABLISHED '
3664 2980K ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
135 17483 LOG all -- any any anywhere anywhere LOG level debug tcp-sequence tcp-options ip-options uid prefix `iptables-JW DROPPED '
135 17483 DROP all -- any any anywhere anywhere
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 6110 packets, 696K bytes)
pkts bytes target prot opt in out source destination
Is there a danger in accepting all outbound traffic or all established/related connections?
This is on a personal laptop that only I use.
Cheers