Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: chichita on April 05, 2020, 09:17:11 AM

Title: routing issue
Post 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
Title: Re: routing issue
Post by: chichita on April 05, 2020, 09:19:53 AM
pc 1 and 2 configuration
Title: Re: routing issue
Post by: andyj on April 05, 2020, 09:32:10 AM
Did you do this in /opt/bootlocal.sh on the router? IP_forwarding doesn't need to be enabled on the end PC's.

Code: [Select]
echo 1 > /proc/sys/net/ipv4/ip_forward
Title: Re: routing issue
Post by: chichita on April 05, 2020, 09:53:30 AM
yes i did
is my configuration good ?
Title: Re: routing issue
Post by: curaga on April 05, 2020, 12:38:44 PM
The basic firewall blocks all incoming connections.
Title: Re: routing issue
Post by: andyj on April 05, 2020, 05:58:45 PM
By default it looks like everything should pass until you set up some firewall rules:

Code: [Select]
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?
Title: Re: routing issue
Post by: curaga on April 06, 2020, 02:07:14 AM
@andyj
The script is literally named basic-firewall ;) The images show it's active. Plain iptables defaults to passing, yes.
Title: Re: routing issue
Post by: chichita on April 06, 2020, 03:24:49 AM
@andyj
here is what i get

@curaga
how can i deblock it ?
Title: Re: routing issue
Post by: andyj on April 06, 2020, 09:09:17 AM
The FORWARD policy is to DROP everything. That's why nothing is being routed. Try:

Code: [Select]
sudo iptables -P FORWARD ACCEPT
Title: Re: routing issue
Post by: chichita on April 06, 2020, 06:14:46 PM
@andyj
i tried it but still the same , no ping