LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2018, 11:58 AM   #1
sparkling
LQ Newbie
 
Registered: Apr 2017
Posts: 20

Rep: Reputation: Disabled
RTNETLINK answers: Operation not permitted


Hi all,

I am on the VPN and can access my work VMs via SSH. But I cannot access to them on the browser. For example I have Nagios running on 10.75.7.3. I can access the VM via the terminal but cannot access it via the browser. In the past when I had that problem, I fixed it by adding the route to 10.75.x.x network but I can't remember the correct command anymore. This is the error I get: RTNETLINK answers: Operation not permitted

Code:
ip -a r
default via 192.168.1.1 dev wlp1s0  proto static  metric 600 
10.75.0.0/16 dev vpn0  proto static  scope link  metric 50 
60.170.118.194 via 192.168.1.1 dev wlp1s0  proto static  metric 600 
169.222.0.0/16 dev wlp1s0  scope link  metric 1000 
172.188.323.0/24 dev vpn0  proto kernel  scope link  src 172.16.212.37  metric 50 
192.168.1.0/24 dev wlp1s0  proto kernel  scope link  src 192.168.1.243  metric 600 
192.168.21.0/24 dev vpn0  proto static  scope link  metric 50 
192.168.50.0/24 dev vpn0  proto static  scope link  metric 50
Can you please let me know how I can add that route please? I used to run a command similar to this:

Code:
 ip route add 10.75.7.0/24 via 192.168.1.1
RTNETLINK answers: Operation not permitted

Thank you in advance
 
Old 02-13-2018, 03:35 PM   #2
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302
Blog Entries: 4

Rep: Reputation: Disabled
" ip route add 10.75.7.0/24 via 192.168.1.1"
I'm guessing you've tried using sudo?

sudo ip route add 10.75.7.0/24 dev eth0
where eth0 should be substituted with the correct network interface name from an ifconfig -a output

To verify route:
sudo ip route list
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RTNETLINK answers: File exists Winanjaya Linux - Networking 5 06-24-2014 05:22 AM
rtnetlink answers mun10 Linux - Networking 1 03-27-2013 02:28 PM
RTNETLINK answers: File exists santoshkumark Linux - Server 1 03-07-2013 07:32 AM
RTNETLINK answers: File exists santoshkumark Linux - Newbie 1 03-07-2013 06:49 AM
RTNETLINK answers: File exists Seregwethrin Linux - Networking 2 11-01-2010 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration