<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
So, by injecting the "sudo -s" command in the correct place, my JNOS now boots and all routes are working as should<BR>
 <BR>
They now look like this: (without the beginning and ending quotes)<BR>
 <BR>
"shell sudo -s iptables -t nat -A PREROUTING -d 192.168.1.7 -p tcp --dport 6300 \-j DNAT --to 44.2.14.1:23"<BR>"shell sudo -s /sbin/ifconfig tun0 192.168.1.7 pointopoint 44.2.14.1 mtu 1500 up"<BR>"shell sudo -s arp -s 44.2.14.1 00:e0:18:02:dd:e0 pub"<BR>"shell sudo -s echo 1 >/proc/sys/net/ipv4/ip_forward"<BR>"shell sudo -s iptables -t nat -A POSTROUTING -s 44.2.14.1/32 -o eth0 -j MASQUERADE"<BR>  <BR>
Thank you all that gave input on this. <BR>
 <BR>
Bill<BR>
KG6BAJ<BR>
<BR> <BR>

<HR id=stopSpelling>
From: thunderft@hotmail.com<BR>...the commands I have in my "autoexec.nos" file wont run correctly this way, because on auto-boot-up, the console 4 is not root.<BR> <BR>While JNOS will boot and run, these commands (from autoexec.nos) need root permissions:<BR>"shell iptables -t nat -A PREROUTING -d 192.168.1.7 -p tcp --dport 6300 \-j DNAT --to 44.2.14.1:23"<BR>"shell /sbin/ifconfig tun0 192.168.1.7 pointopoint 44.2.14.1 mtu 1500 up"<BR>"shell arp -s 44.2.14.1 00:e0:18:02:dd:e0 pub"<BR>"shell echo 1 >/proc/sys/net/ipv4/ip_forward"<BR>"shell iptables -t nat -A POSTROUTING -s 44.2.14.1/32 -o eth0 -j MASQUERADE"<BR>  <BR> <BR>Bill<BR>KG6BAJ<BR><BR> <BR>                                       </body>
</html>