Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: chichita on April 05, 2020, 09:17:11 AM
-
Hello,
you find attached here my topology and all my configuration , the problem is that i can't ping pc 1 to pc 2 (both ways) and i can"t ping the router too from both pc 1 and 2 . i have ipv4 forwarding enabled . what is the issue please?
thanks
-
pc 1 and 2 configuration
-
Did you do this in /opt/bootlocal.sh on the router? IP_forwarding doesn't need to be enabled on the end PC's.
echo 1 > /proc/sys/net/ipv4/ip_forward
-
yes i did
is my configuration good ?
-
The basic firewall blocks all incoming connections.
-
By default it looks like everything should pass until you set up some firewall rules:
tc@box:~$ sudo iptables -L -nv
Chain INPUT (policy ACCEPT 24731 packets, 36M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 13409 packets, 709K bytes)
pkts bytes target prot opt in out source destination
What do you get when you run the iptables command as above?
-
@andyj
The script is literally named basic-firewall ;) The images show it's active. Plain iptables defaults to passing, yes.
-
@andyj
here is what i get
@curaga
how can i deblock it ?
-
The FORWARD policy is to DROP everything. That's why nothing is being routed. Try:
sudo iptables -P FORWARD ACCEPT
-
@andyj
i tried it but still the same , no ping