Problem polega na tym, że komputer ma dostęp do sieci ale nie ma do internetu.
W katalogu /srv/ znalazłem pliki rc.macs i rc.masq dopisałem tam też kolejne dane, jednak nie wiem jak zrestartować te pliki? Albo co zrobić żeby serwer puścił na ten komputer internet. Gdy zrestartuje cały serwer to wpisy mi się usuwają. A gdy wpiszę
Kod: Zaznacz cały
ip tables - L
[Dodano: 2009-09-10, 14:27]
Kod: Zaznacz cały
Chain INPUT (policy DROP)
target prot opt source destination
DROP tcp -- anywhere anywhere tcp dpt:2222 state NEW recent: UPDATE seconds: 300 hit_count: 3 name: DEFAULT side: source
tcp -- anywhere anywhere tcp dpt:2222 state NEW recent: SET name: DEFAULT side: source
DROP tcp -- anywhere anywhere tcp dpt:ssh state N EW recent: UPDATE seconds: 300 hit_count: 3 name: DEFAULT side: source
tcp -- anywhere anywhere tcp dpt:ssh state N EW recent: SET name: DEFAULT side: source
ACCEPT 0 -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp destination-un reachable
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:2222
ACCEPT tcp -- anywhere anywhere tcp dpt:2223
ACCEPT tcp -- anywhere anywhere tcp dpt:www
STATEFUL 0 -- anywhere anywhere
DROP tcp -- 217.17.41.0/24 anywhere tcp spt:!www
ACCEPT 0 -- 192.168.0.0/24 192.168.0.0/24
ACCEPT 0 -- 192.168.0.2 anywhere
ACCEPT 0 -- anywhere 192.168.0.2
ACCEPT 0 -- 192.168.0.3 anywhere
ACCEPT 0 -- anywhere 192.168.0.3
ACCEPT 0 -- 192.168.0.10 anywhere
ACCEPT 0 -- anywhere 192.168.0.10
ACCEPT 0 -- 192.168.0.14 anywhere
ACCEPT 0 -- anywhere 192.168.0.14
ACCEPT 0 -- 192.168.0.15 anywhere
ACCEPT 0 -- anywhere 192.168.0.15
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT 0 -- 192.168.0.100 anywhere
ACCEPT 0 -- anywhere 192.168.0.100
ACCEPT 0 -- 192.168.0.253 anywhere
ACCEPT 0 -- anywhere 192.168.0.253
ACCEPT tcp -- 217.17.41.0/24 192.168.0.69 tcp spt:https
ACCEPT tcp -- 217.17.41.0/24 192.168.0.69 tcp spt:8074
ACCEPT tcp -- 217.17.41.0/24 192.168.0.23 tcp spt:https
ACCEPT tcp -- 217.17.41.0/24 192.168.0.23 tcp spt:8074
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere
Chain STATEFUL (1 references)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere state RELATED,ESTAB LISHED
ACCEPT 0 -- anywhere anywhere state NEW