Netshroud Posted October 26, 2009 Posted October 26, 2009 I followed the HowTo on the Ubuntu Site, but I can't get the Upside-Down-Ternet working. I can telnet to the HTTP server locally. Squid and Apache are running, but I cannot connect to either Squid or Apache remotely. Quote
BlueWyvern Posted October 27, 2009 Posted October 27, 2009 the issue you may be seeing is that either a.) the ports are not forwarded in your router or b.) Your ISP is blocking the commonly used ports for Telnet, HTTP, etc When I ran a FTP server on my home connection I could not use 21 so I used a ridiculously high number like 9001. I do not recommend you set DMZ for that computer's IP unless you just want to test it momentarily to see if your ISP blocks the port. Quote
Sparda Posted October 27, 2009 Posted October 27, 2009 I followed the HowTo on the Ubuntu Site, but I can't get the Upside-Down-Ternet working. I can telnet to the HTTP server locally. Squid and Apache are running, but I cannot connect to either Squid or Apache remotely. If 'local' means at the terminal, it's probably because the default squid config will only accept connections from localhost. I forget the details of how to change this... but it's some where. Quote
Netshroud Posted October 27, 2009 Author Posted October 27, 2009 It's not the ISP, I'm running it on a LAN. Local means the terminal. I set it to allow localnet, not localhost, but it still doesn't accept LAN connections. Quote
aaronrus Posted December 19, 2010 Posted December 19, 2010 I have completed the How-To at https://help.ubuntu.com/community/Upside-Down-TernetHowTo on upside-down-trenet and can't get it to work. Squid starts but will not serve pages. A port scan shows no squid port at 3128, Logs show The url_rewriter helpers are crashing too rapidly, need help! If I remove line url_rewrite_program /usr/local/bin/flip.pl squid works fine and a port scan shows its running on 3128 I'm using Ubuntu and the same version of squid and apachie2 as the how-to Any Ideals? has any one got this working? Quote
Infiltrator Posted December 19, 2010 Posted December 19, 2010 Out of curiosity, how did you set up squid? As a transparent proxy, or as web cache proxy If Squid is configured as a transparent proxy, you are not required to enter any proxy settings on your browser. However if you configured squid as a web cache, you will need to specify the port and the ip address of squid server, within your browser proxy settings. If you wouldn't mind, are you able to provide a copy of your squid config file? Quote
aaronrus Posted December 19, 2010 Posted December 19, 2010 Ive tried both transparent and web cache currently I have it working as a caching proxy and have the proxy info configured in the browser. I fingered out the issue. It was the flip.pl script It simply does not work with the second elsif block. I found another version at http://compexperience.blogspot.com/2010/04/upside-down-images-prank.html This one works for me! Thanks for your help #!/usr/bin/perl $|=1; $count = 0; $pid = $$; while (<>) { chomp $_; if ($_ =~ /(.*\.jpg)/i) { $url = $1; system("/usr/bin/wget", "-q", "-O","/var/www/images/$pid-$count.jpg", "$url"); system("/usr/bin/mogrify", "-flip","/var/www/images/$pid-$count.jpg"); print "http://127.0.0.1/images/$pid-$count.jpg\n"; } elsif ($_ =~ /(.*\.gif)/i) { $url = $1; system("/usr/bin/wget", "-q", "-O","/var/www/images/$pid-$count.gif", "$url"); system("/usr/bin/mogrify", "-flip","/var/www/images/$pid-$count.gif"); print "http://127.0.0.1/images/$pid-$count.gif\n"; } else { print "$_\n";; } $count++; } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.