SIOCADDRT Operation not permitted

wallybok

New Member
Joined
Apr 7, 2021
Messages
3
Reaction score
0
Credits
27
I'm a newbie with linux and I have a problem I don't know how to resolve... I'm using kali linux and I needed to add the routing table to my device with this command:

```sudo ifconfig wlan0mon up 192.168.1.1 netmask 255.255.255.0
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
```

I get this:

```SIOCADDRT: Operation not permitted```

What can I do to unlock this command?

Thank you in advance!!
 


Hello.
You have two commands:
First: sudo ifconfig wlan0mon up 192.168.1.1 netmask 255.255.255.0
Second: route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1

You need to add 'sudo' to second command.

So, you need to executed:
sudo route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
 
Thanks! I got it!

Now I have another huge problem with dnsmasq... Are you familiar with it?
 
Thanks! I got it!

Now I have another huge problem with dnsmasq... Are you familiar with it?
i've used it quite some time ago on a small Intranet; where a Linux machine and other clients were hooked up on a simple newtwork simply via a "switch" with no router . I ran dnsmasq on a Linux box which leased out Ip addresses to the "client" computers. What are you trying to do with dnsmasq yourself?
 
Right so, I made the dnsmasq.conf file this way:

interface=wlan0mon
dhcp-range= 192.168.1.2, 192.168.1.30, 255.255.255.0, 12h
dhcp-option=3, 192.168.1.1
dhcp-option=6, 192.168.1.1
server= 8.8.8.8
log-queries
log-dhcp
listen-address= 127.0.0.1

When I hit the command:

Code:
sudo dnsmasq -C dnsmasq.conf -d

I get this:

Code:
dnsmasq: started, version 2.84rc2 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile
dnsmasq-dhcp: DHCP, IP range 192.168.1.2 -- 192.168.1.30, lease time 12h
dnsmasq: using nameserver 8.8.8.8#53
dnsmasq: no servers found in /etc/resolv.conf, will retry
dnsmasq: read /etc/hosts - 6 addresses

The resolv.conf file is empty and I'm not sure what it should contain to work...
 

Members online


Top