From version 2.0m it is possible to run Jnos as a NON-Root user.
The changelog from the website of Maiko.
a) create a new JNOS user and group jnos:x:1001:1001::/home/jnos:/bin/bash jnos:x:1001: b) change ownership of the entire JNOS runtime area chown -R jnos:jnos /jnos/rte c) as root user, configure a tunN interface, and just leave it there forever. ip tuntap add mode tun dev tun4 ifconfig tun4 192.168.200.200 pointopoint 192.168.200.201 mtu 1500 up WARNING : make sure you pick a number N that does not conflict with any other tun interfaces that might be running - OpenVPN comes to mind for example, some VM subsystems might use tun as well ? d) modify autoexec.nos, add an extra parameter to the 'attach tun' entry, and make sure to comment out the point to point ifconfig. So what was previously run as root, for example, below : attach tun tun0 1500 0 shell ifconfig tun0 192.168.200.200 pointopoint 192.168.200.201 mtu 1500 up will now just become a one line entry, below : attach tun tun0 1500 0 tun4
I have add some of the stuff in my /etc/rc.local file.
# Jnos sysctl -w net.ipv4.ip_forward=1 ip tuntap add mode tun dev tun4 ifconfig tun4 192.168.1.100 pointopoint 192.168.1.101 mtu 1500 up # Put a "Proxy ARP" on the Linux Ethernet so that it can answer any # querries for the JNOS addres /usr/sbin/arp -i eth0 -Ds 192.168.1.101 eth0 pub
This is what i have in the autoexec.nos
attach tun tun0 1500 0 tun4 # ifconfig tun0 ipaddress 192.168.1.101 ifconfig tun0 netmask 0xfffffffc ifconfig tun0 mtu 1500
Now you can run Jnos as a “normal” user.