Deprecated: Function set_magic_quotes_runtime() is deprecated in /membri/cyberstorm/phpBB3/common.php on line 106

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /membri/cyberstorm/phpBB3/includes/bbcode.php on line 112
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3390: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3392: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
Neptune354 :: View topic - ..SSH tunneling..(Encrypt your web browsing)...........
Neptune354
http://cyberstorm.altervista.org/phpBB3/

..SSH tunneling..(Encrypt your web browsing)...........
http://cyberstorm.altervista.org/phpBB3/viewtopic.php?f=8&t=46
Page 2 of 2

Author:  spooker [ 07 Aug 2008, 19:05 ]
Post subject:  Re: ..SSH tunneling..(Encrypt your web browsing)...........

come on people. Someone please answer me how can I make the ssh server visible for the internet.....

adding iptables -I INPUT -p tcp -m tcp --dport 22 -j limaccept
in the online.sh script didn't do the trick. Must I add something else???
Please help I am desperate........

Author:  rickster24 [ 12 Aug 2008, 22:32 ]
Post subject:  Re: ..SSH tunneling..(Encrypt your web browsing)...........

spooker
1. As explained previously the online.sh does not work due to a bug in the code....

2. You can not use port 80...you have to use a port which is not being used at the time...22 is good or 1723 (vpn) which is generally left open

All

I've just created a work around.........

This script creates another script which is run by crontab every x minutes.... The script looks at the iptable (firewall rules) and enables shh port if it is not enabled...

I put this code in the script file that run on power up script.sh (check instructions on routers admin web page)


Code:
#!/bin/sh
#
# Have to kill cron before adding new jobs
killall cron
#
# Create script to monitor iptables (essh.sh)
echo "#!/bin/sh" > /mnt/essh.sh
echo "#" >> /mnt/essh.sh
echo "if ( ((/usr/sbin/iptables -L INPUT)|/bin/grep -q ssh)||((/usr/sbin/iptables -L INPUT)|/bin/grep -q 22) )" >> /mnt/essh.sh
echo "then" >> /mnt/essh.sh
echo "exit 1" >> /mnt/essh.sh
echo "else" >> /mnt/essh.sh
echo "/usr/sbin/iptables -I INPUT -p tcp -m tcp --dport 22 -j limaccept" >> /mnt/essh.sh
echo "fi" >> /mnt/essh.sh
echo " ">> /mnt/essh.sh
#
# Make script executable
/bin/chmod +x /mnt/essh.sh
#
# Add cron job to run script every x minutes
echo "*/15 * * * * root /mnt/essh.sh" > /tmp/cron.d/checkssh
#
# Re start cron
cron
#



Mods that you can make.....
1. To change port from 22 to 1723 for example, you need to change the following sections
Code:
         from ....   /grep -q 22     to    /grep -q 1723
and    from ....    --dport 22     to    --dport 1723

2. The script runs every 15 mins - change the following line if you want a different time

Code:
echo "*/15 * * * * root /mnt/essh.sh" > /tmp/cron.d/checkssh



Note 1.... The selected port number must also tie up with that selected on the admin page

Note 2.... On rare occasions I have detected that the router can lockup using this SHH tunneling (I assume that this may be due to the version of dropbear used in this firmware, has memory leaks... To reduce this effect after a session of tunneling...you can use the reboot command in the shell to reset the router (work around)

To.. Cyberstorm...... Many Thanks for the firmware - I've learned a lot
If you ever create another version of neptune, a possible improvement would be to include latest dropbear client (also has option for shh windows size..improved speed)


Updated Monday, 03 September 2008....For your info, this script works with Neptune354 version 0.1 and 0.2 :D
(and probably 0.1 WAG354G hardware V2 compiled by Carciofone (for people with hardware Version 2))
-
Checkout the downloads on
http://cyberstorm.altervista.org

Author:  rickster24 [ 02 Sep 2008, 20:03 ]
Post subject:  Re: ..SSH tunneling..(Encrypt your web browsing)...........

Above post updated................ :ugeek:

Page 2 of 2 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/