← Back to team overview

sslug-teknik team mailing list archive

Re: iptables til internet-gateway

 

> Hvad skriver
> 
> iptables -L
> 
> og
> 
> route
> 
> på maskinen?
Chain INPUT (policy DROP)
target     prot opt source               destination         
block      all  --  anywhere             anywhere           

Chain FORWARD (policy DROP)
target     prot opt source               destination         
block      all  --  anywhere             anywhere           

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain block (2 references)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere           state
RELATED,ESTABLISHED 
ACCEPT     all  --  anywhere             anywhere           state NEW 
LOG        all  --  anywhere             anywhere           LOG level
warning 

og

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
217.60.247.0    *               255.255.255.128 U     0      0        0
eth1
192.168.100.0   *               255.255.255.0   U     0      0        0
eth0
127.0.0.0       *               255.0.0.0       U     0      0        0
lo
default         217.60.247.1    0.0.0.0         UG    0      0        0
eth1

Og selvom jeg sætter net.ipv.... til 1, virker scriptet stadig ikke!




Follow ups

References