Een paar dagen is mijn routertje gecrashed, en heb ik maar meteen Slack8 (met 2.4.5 kernel geinstaleerd)
Nu probeer ik met iptables een simpel masquerading policy op te zetten, maar dit wil niet helemaal lukken (zeg maar helemaal niet)
Ik heb een paar HOWTO's doorgenomen, en uit een van die dingen zo'n standaard scriptje genomen, maar dit doet het dus niet.
Ik krijg telkens de melding:
iptables: No chain/target/match by that name
Ik kan echter niks vinden wat dit probleem oplost, FORWARD policy op ACCEPT zetten helpt trouwens ook niet..
Iemand die weet hoe ik dit kan oplossing (of misschien een complete andere oplossing weet) ?
Nu probeer ik met iptables een simpel masquerading policy op te zetten, maar dit wil niet helemaal lukken (zeg maar helemaal niet)
Ik heb een paar HOWTO's doorgenomen, en uit een van die dingen zo'n standaard scriptje genomen, maar dit doet het dus niet.
Ik krijg telkens de melding:
iptables: No chain/target/match by that name
Chains bestaan dus, target bestaat ook:$ iptables -P INPUT ACCEPT
$ iptables -F INPUT
$ iptables -P OUTPUT ACCEPT
$ iptables -F OUTPUT
$ iptables -P FORWARD DROP
$ iptables -F FORWARD
$ iptables -t nat -F
$ iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables: No chain/target/match by that name
$ iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
$ iptables -A FORWARD -j LOG
iptables: No chain/target/match by that name
$ iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables: No chain/target/match by that name
$ iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
$ iptable -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| eth0 Link encap:Ethernet HWaddr 00:20:18:8A:F3:65
inet addr:62.238.***.*** Bcast:62.238.239.255 Mask:255.255.240.0
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:294051 errors:0 dropped:0 overruns:0 frame:0
TX packets:145522 errors:0 dropped:0 overruns:0 carrier:0
collisions:354 txqueuelen:100
RX bytes:204007445 (194.5 Mb) TX bytes:16570744 (15.8 Mb)
Interrupt:10 Base address:0xc000
eth1 Link encap:Ethernet HWaddr 00:00:B4:C2:C3:D7
inet addr:192.168.0.250 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300 (300.0 b) TX bytes:300 (300.0 b) |
Ik kan echter niks vinden wat dit probleem oplost, FORWARD policy op ACCEPT zetten helpt trouwens ook niet..
Iemand die weet hoe ik dit kan oplossing (of misschien een complete andere oplossing weet) ?