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


SORRY GUYS; DUE TO A BIG AMOUNT OF SPAM I HAVE BLOCKED ALL THE FORUM ACTIVITY :-/
It is currently 14 Dec 2017, 20:53

All times are UTC + 1 hour [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: ..SSH tunneling..(Encrypt your web browsing)...........
PostPosted: 07 Aug 2008, 19:05 
Offline
 Profile

Joined: 01 May 2008, 21:24
Posts: 2
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........


Top
 

 Post subject: Re: ..SSH tunneling..(Encrypt your web browsing)...........
PostPosted: 12 Aug 2008, 22:32 
Offline
 Profile

Joined: 22 Jan 2008, 21:17
Posts: 15
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


Last edited by rickster24 on 03 Sep 2008, 20:57, edited 2 times in total.

Top
 

 Post subject: Re: ..SSH tunneling..(Encrypt your web browsing)...........
PostPosted: 02 Sep 2008, 20:03 
Offline
 Profile

Joined: 22 Jan 2008, 21:17
Posts: 15
Above post updated................ :ugeek:


Top
 

Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour [ DST ]



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits