lo so che l'argomento e' stato trattato e ritrattato... ma io non sono ancora riuscito a venirne fuori....
dunque:
macchina linux:
eth0 (ip 192.168.1.245) collegata a router adsl (ip 192.168.1.1)
eth1 (ip 192.168.1.244) collegata allo switch
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
RTA230.home * 255.255.255.255 UH 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default RTA230.home 0.0.0.0 UG 0 0 0 eth0
[root@server root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
LOG all -- !192.168.1.0/24 anywhere LOG level warning
DROP all -- !192.168.1.0/24 anywhere
DROP all -- 127.0.0.0/8 anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- 10.0.0.2 anywhere tcp dpt:http
ACCEPT tcp -- 10.0.0.2 192.168.1.0/24 state RELATED,ESTABLISHED tcp spt:http
ACCEPT !icmp -- anywhere anywhere state RELATED,ESTABLISHED
DROP all -- anywhere anywhere state NEW
ACCEPT all -- 192.168.1.0/24 anywhere
ACCEPT icmp -- anywhere 10.0.0.1 icmp echo-reply
ACCEPT icmp -- anywhere 10.0.0.1 icmp echo-request
ACCEPT icmp -- anywhere 10.0.0.1 icmp destination-unreachable
ACCEPT all -- 192.168.1.0/24 anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
LOG all -- !192.168.1.0/24 anywhere LOG level warning
DROP all -- !192.168.1.0/24 anywhere
DROP all -- anywhere anywhere state NEW
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- anywhere 192.168.1.0/24 state NEW tcp spt:http
macchina windows xp professional:
ip: 192.168.1.2
nm: 255.255.255.0
gw: li ho provati tutti... dagli indirizzi delle schede del pc linux al 192.168.1.1
dal pc linux navigo e vedo la rete, ma dal resto della rete vedo solo il pc linux e non riesco a navigare....
dove sbaglio???