Setting up a website to be public using Kali Linux


Recommended Posts

I'm about to bash my head against the wall trying to figure out 

how to make a a website that I've created in Kali Linux which can

be viewed on my own private networking able to be viewed from a 

computer outside my network.

 

I can figure how to make my ip addres private if that's what's involved.

Besides Kali Linux I'm also using a Lynsys router with dd-wrt.

 

Thanks in advanced for any helpful response/s.

 
  On 15/06/2015 at 09:34, netsurfer802 said:

I'm about to bash my head against the wall trying to figure out 

how to make a a website that I've created in Kali Linux which can

be viewed on my own private networking able to be viewed from a 

computer outside my network.

 

I can figure how to make my ip addres private if that's what's involved.

Besides Kali Linux I'm also using a Lynsys router with dd-wrt.

 

Thanks in advanced for any helpful response/s.

 

So to summarize: 

  • You have a web page on your PC and you are able to view the pages on your home network
  • You want to access the pages from away from home, (from the internet)

 

WARNING - Be warned that it is generally not a good idea to just open up anything inside your home network to the outside, I'm not going to go into details of how to protect your network, you asked for how to open up for external access so I'll show you just that.

 

Things you need:

  • Your external IP
  • The internal IP of your PC
  • Access to the Linsys DD-WRT router via the web interface

This next bit is directly snipped from http://www.dd-wrt.com/wiki/index.php/Port_Forwarding#Port_Range_Forward :

 

  • Browse to the web interface.
  • Click on the "NAT / QoS" tab.
  • Click on the "Port Range Forward" subtab.
  • Enter any Application name you'd like. This is for your own reference and does not matter to to the router.
  • Enter 80 in Start port .
  • Enter 80 in End port.
  • Enter the local IP Address of the machine you'd like to forward the port to. (internal IP)
  • Check the "Enable" checkbox to enable forwarding for this port range.

If the computer you're forwarding to is configured by for automatic IP address by DHCP, you will periodically have to update the last field to reflect the machine's current Local IP Address. 

 

Save and apply the settings and you should be good to go (might require a restart depending on the router model)

 

 

Now, you will be able to access your web server on http://<you external ip>/ 

Kali linux not really a distro of choice for serving up websites.. Its a penetration testing distro - not really something designed to be used day to day as you normal OS or serve up stuff to the public.

 

What exactly do you want to make open to the public?  Does your isp even allow 80 inbound?  What do you have in front of your "Lynsys router"  did you mean linksys?  Is it also doing nat?

 

I am blown away from someone that would even know about kali linux not know how to forward a port.. Then again someone that would try to run a website on it - not so much ;)

 

Here is what I suggest to people wanting to host public services off their HOME connection - DON'T!!  What sort of site are you trying to make public - and who are going to be the users?

  • Like 3

Agree with Budman

 

If yours gonna do this use something like Debian, nice and easy to setup and lots of tutorials and documentation online

 

I open mine up to the public every now and then to get people to test stuff but then its closed again

 

Too much to worry about making it safe and secure for me to risk it

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Unless there is “bug” that all of a sudden sends your messages to Meta. Where have I heard this before?!
    • Maybe, just maybe... and it isn't you... there are some people who like the Windows 11 UI (for whatever reason) and want a better backend.
    • Gundams to arrive in Call of Duty: Mobile with new mech mode and unique third-person combat by Paul Hill Activision has announced that Call of Duty: Mobile will see the launch of Season 6 “Gundams Arrive” on July 2 at 5PM Pacific Time. This major collaboration between the world’s most popular FPS franchise and the Gundam franchise will introduce a new, limited-time mode called Gundam Team Deathmatch where 8 players will face off 4v4 and pilot Gundam-themed operators such as Ethan - Freedom Gundam, Reaper - Sazabi Gundam, Proton - v Gundamo, Deathscythe Gundam (EW). When playing in this game mode, players will notice a switch from the usual first-person view to the third-person perspective. The new game mode will also feature specific abilities and weapons that are unique to Gundam suits rather than player loadouts. The new Gundam Team Deathmatch mode will be played on a new map called interstellar space station, which has been designed for this mode. When playing, you’ll discover that the mech suits offer specialized mobility such as dodge, sprint, and vertical jets. In the post-match, players will be able to watch Gundam operator animations with unlockable rewards for viewing. You can unlock more animations by participating in Gundam Team Deathmatch, normal Multiplayer, and Battle Royale modes. There will also be Gundam-themed in-game events, such as Survival of the Fittest, which will give players free rewards like the new legendary weapon J358 — Fin Funnel v Gundam, Urban Tracker — Defense Force, Cyro Bomb — Haro (reskin), Emote — Haro Team, new camos, and more. Players will also be able to obtain a variety of items through Season 6 Battle Pass free and premium tiers, including sci-fi-themed Operators and Weapon Blueprints. Players on the free tier will get access to the bolt-action 3-Line Rifle based on a World War II design and is capable of inflicting high damage with high accuracy. Free tier players will also have the chance to earn other rewards such as Skins, Weapons Blueprints, Vault Coins, and more. Players looking to spend money can get the Premium Pass. These players will have a chance to get all of the content from Season 6 including tactical warriors like Silver — Chrome Dome Reskin, Misty — Science Pilot, Atlas — Dust Ranger, and The Marshal — Rock Hound; and Weapon Blueprints like the BP50 — Pathripper, Oden — Maevwat Technical, PDW-57 — Rocket Re-Entry, BY15 — Dark Moon, and the 3-Line Rifle — Geo Thermal Line, based on the new Season 6 weapon. There’s also Battle Pass Subscription which gives you additional monthly rewards along with a 10% boost to Player and Weapon XP, discount coupons, and limited discounts on 10x crate pulls. Activision also stated that Mythic Drops are returning to the Mythic store and that Battle Pass Vault is getting Season 9 — Zombies Are Back (2022) and Season 6 — Templar's Oath (2023).
    • I managed to buy the original Hellblade: Senua’s Sacrifice through the ps app on my phone even though it was not showing up in the ps store when browsing from my ps5 it was buggy but more or less O.K.ish to play… I wonder if this original added version is funny fixed up for ps5 play
    • Download old Windows Startup Sounds @ https://www.winhistory.de/more/winstart/winstart_en.htm
  • Recent Achievements

    • Week One Done
      pcdoctorsnet earned a badge
      Week One Done
    • Rising Star
      Phillip0web went up a rank
      Rising Star
    • One Month Later
      Epaminombas earned a badge
      One Month Later
    • One Year In
      Bert Fershner earned a badge
      One Year In
    • Reacting Well
      ChrisOdinUK earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      549
    2. 2
      ATLien_0
      205
    3. 3
      +FloatingFatMan
      173
    4. 4
      Michael Scrip
      150
    5. 5
      Som
      131
  • Tell a friend

    Love Neowin? Tell a friend!