WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: routing issue  (Read 2388 times)

Offline chichita

  • Newbie
  • *
  • Posts: 20
routing issue
« 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

Offline chichita

  • Newbie
  • *
  • Posts: 20
Re: routing issue
« Reply #1 on: April 05, 2020, 09:19:53 AM »
pc 1 and 2 configuration

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: routing issue
« Reply #2 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
« Last Edit: April 05, 2020, 09:36:24 AM by andyj »

Offline chichita

  • Newbie
  • *
  • Posts: 20
Re: routing issue
« Reply #3 on: April 05, 2020, 09:53:30 AM »
yes i did
is my configuration good ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: routing issue
« Reply #4 on: April 05, 2020, 12:38:44 PM »
The basic firewall blocks all incoming connections.
The only barriers that can stop you are the ones you create yourself.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: routing issue
« Reply #5 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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: routing issue
« Reply #6 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.
The only barriers that can stop you are the ones you create yourself.

Offline chichita

  • Newbie
  • *
  • Posts: 20
Re: routing issue
« Reply #7 on: April 06, 2020, 03:24:49 AM »
@andyj
here is what i get

@curaga
how can i deblock it ?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: routing issue
« Reply #8 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

Offline chichita

  • Newbie
  • *
  • Posts: 20
Re: routing issue
« Reply #9 on: April 06, 2020, 06:14:46 PM »
@andyj
i tried it but still the same , no ping