Jump to content

GeekGoneCrazy

Active Members
  • Posts

    58
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://geekgonecrazy.com
  • ICQ
    0

Profile Information

  • Gender
    Male

Recent Profile Visitors

2,315 profile views

GeekGoneCrazy's Achievements

Newbie

Newbie (1/14)

  1. So no way to proxy ssh and other stuff through depending on the domain name its attempting to reach? I already have different ports open for each needed machine. So I have it working that way. Trying to limit holes and force everything through this box so I can monitor it. Not to mention, remembering ssh user@1.example.com is a lot easier to remember than ssh user@1.example.com:2265 or something random like that. Not in anyway critical or really a security issue. Just figured it must be possible.
  2. Alright another issue! I think I can get all ipv6 forwarding stuff working. Is it possible to port forward depending on the domain name coming in? All port 80 and 443 are taken care of by apache. But, ssh and others? Is this possible? Ssh into 1.example.com forwards to box 1 Ssh into 2.example.com forwards to box 2 Possible? Iptables?
  3. Ok thanks! I didn't know that. That is what struck me as odd. Compared to other languages that should have worked. But bash does work a bit different so that does make sense.
  4. https://gist.github.com/882540 #!/bin/bash # #Script to update ip on Hurricane Electric every 30 minutes #@author Aaron Ogle #Variables HE_userid=<userid> HE_passwd=<password hash> HE_tunnelid=<tunnelid> HE_updateparms='ipv4b=AUTO&user_id='$HE_userid'&pass='$HE_passwd'&tunnel_id='$HE_tunnelid #Loop to keep IP updated while [ true ] do #Get Current IP. NewIP=$(curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//') if [ "$OldIP" != "$NewIP" ] then curl -sF $HE_updateparms http://ipv4.tunnelbroker.net/ipv4_end.php > /dev/null echo 'Updated IP:'$NewIP else echo 'Unchanged' fi #Sleep for 1 Minute OldIP="$NewIP" sleep 60 done Ok this works. If I was to switch it over to a cron job I would need to figure out from a file.
  5. The updated section of code #Get current ip. curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' > /tmp/ipaddress #Initial update to services echo ***Starting update script*** HE_updateparms='ipv4b='$CurrentIP'&user_id='$HE_userid'&pass='$HE_passwd'&tunnel_id='$HE_tunnelid curl -F $HE_updateparms http://ipv4.tunnelbroker.net/ipv4_end.php echo 'Ip set:'$CurrentIP #Loop to keep time updated address='dynamic' until [$address -eq 'static']; do #Get Current IP again. IP=$(curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.$//') if [/tmp/ipaddress != $IP]; then curl -F $HE_updateparms http://ipv4.tunnelbroker.net/ipv4_end.php echo 'Updated IP:'$IP Obviously line 21 is invalid. As far as I'm concerned it can just remain un-found. I tried using grep and it said command not found.
  6. Yeah, that makes sense. Can bash not compare those 2 Variables directly? It seems to keep $CurrentIP. lol wrote to file using > filename Now when trying to compare it doesn't work.
  7. Hello again all, Looking for some assistance with a bash script I wrote. Its throwing some odd errors, and doesn't seem to be working correctly. Errors are in my loop and if statement. Shows the content of the variable and says command not found. I'm not executing a command... I'm comparing variables. I don't get it. Any pretty much any other language i've ever used this would be valid. Related to my topic about network setup. Its suppose to initially grab my public ip. Then every 30 minutes check and make sure the ip hasn't changed. If so update via a POST https://gist.github.com/882540 #!/bin/bash # #Script to update ip on Hurricane Electric every 30 minutes #@author Aaron Ogle #Variables HE_userid=<userid> HE_passwd=<password hash> HE_tunnelid=<tunnelid> #Get current ip. CurrentIP=$(curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//') #Initial update to services echo ***Starting update script*** HE_updateparms='ipv4b='$CurrentIP'&user_id='$HE_userid'&pass='$HE_passwd'&tunnel_id='$HE_tunnelid curl -F $HE_updateparms http://ipv4.tunnelbroker.net/ipv4_end.php echo 'Ip set:'$CurrentIP #Loop to keep time updated address='dynamic' until [$address -eq 'static']; do #Get Current IP again. IP=$(curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.$//') if ["$CurrentIP" != "$IP"]; then #Could use AUTO instead of passing. But were've already got it. #Might as well pass it curl -F $HE_updateparms http://ipv4.tunnelbroker.net/ipv4_end.php echo 'Updated IP:'$IP else echo 'Unchanged.' fi #Sleep for 30 Minutes sleep 1800 done Any ideas? Thanks,
  8. What OS? Essentially the following: Tether Share internet connection. Hook router up to ethernet Statically set the routers gateway ip etc to your laptops. Unless you were to run a dhcp server from your laptop. Then configuration wouldn't be needed.
  9. I started to get a routerOS router a while back after seeing them in linux journal a couple of times. Some how the price jacked up from 39 to a hundred something at check out. Can't remember the specifics, but quickly turned me off of the product. Looks like great devices though.
  10. GeekGoneCrazy

    Ip4 Vs Ip6

    http://ipv6.he.net/certification/ - Kind of cool to get you started along the ipv6 path. If you just want connectivity for a machine, use a teredo tunnel or something. Otherwise, I wouldn't make exactly switch from ipv4 to 6. Run dual stack. For sure stick with ipv4 internally. You do start to learn your ipv6 address after you type it in a few times... But to remember each host? Yeah stick with ipv4 internally. Look up ipv6 videos, a lot of people have tried their hand at explaining it. I think it took me 2 or 3 videos plus a couple of random different articles to understand the basics. I plan on writing my experience up once my setup is complete. I wish there were more guides out there. Surprisingly there still isn't..
  11. Sweet, Actually had just finished doing that. Looks like i'm off to a good start. IPv6 is crazy! I have a /48 which can have 65536 /64 subnet's each /64 can have 18,446,744,073,709,551,616 Hosts? Which is something like 1,208,925,819,614,629,174,706,176 total? Sheesh! I can finally have a static ip or 2. ;) Watch ISP's like AT&T try and give everyone a /128 when they finally dual stack.
  12. I haven't found one. Would be kind of cool to just play a video file of someone's time on the internet.
  13. So set up apache on it to do the forwards. Instead of trying to do it at the iptables level?
  14. It is a little harder than would be expected. But not that bad. I hear you. I've been working on it for about a week. Finally decided I would learn it, or else. http://ipv6.geekgonecrazy.com/ I'm a little frustrated that my mac insists on selecting the A record first. I was under the impression it would query for AAAA first.
  15. Wouldn't hurt to have provided a little more feedback than that. If I understand your initial question right. You want to reconstruct the traffic captures and display what they saw as an image or video stream?
×
×
  • Create New...