Jump to content
Not connected, Your IP: 18.225.175.230
Sign in to follow this  
Guest rbj

Those iptables at the top of the page (linux version)

Recommended Posts

Guest rbj

I want to add the iptables to my ubuntu box but I have no idea where they go. It seems like a very good idea to have all internet apps shut down in case of the VPN drops. Do I create a new file - say in /etc and put all those lines in (changing what's needed for my machine)?

And I know my router's address is 192.168.1.1, but where does the /16 fit in? How do I know what value goes there?

Ok, that's all for showing how dumb I am. Thanks all.

Share this post


Link to post

Probably not a good idea to put them anywhere until you are sure that they will do what you want them to do. What I did was use a text editor to make a file named "firewall.sh". From a root terminal, I enter "sh firewall.sh". That will start your iptables filtering. This allows me to make any necessary changes when I change servers. Once you settle on a server you like, you can add those lines (or some command that will execute your shell command) to whatever init files your distro uses. You probably should do some research on iptables to make sure you don't mess up any filtering that may already be set up.

Share this post


Link to post
Guest rbj

Thanks for the heads-up. I'm definitely not adding/changing any iptables until I'm very sure what I'm doing. It's time to burn a few search engines to learn more

Share this post


Link to post

Here are a few links to help on the iptables in Ubuntu. It is the same for Linux Mint distros as well.

https://help.ubuntu.com/community/IptablesHowTo

You can also use GUFW which is a graphical firewall for Linux and set up a similar firewall in Ubuntu comparable to Comodo firewall. Here are 2 links that will help with the setup:

https://help.ubuntu.com/community/Gufw

http://www.techotopia.com/index.php/Using_gufw_and_ufw_to_Configure_an_Ubuntu_11.04_Firewall

Share this post


Link to post

UPDATE:

I have an update after doing more research into this. Our objective is to have the internet traffic stopped once we lose VPN connection so I did some research into this. This website has a firewall that can help to accomplish this goal on Linux---------> http://www.shorewall.net

It was great reading into it, but I needed an example of how to set everything up which eventually led me here ------------> http://support.xerobank.com/wiki/doku.php?id=howto_lockdown_debian_ubuntu_openvpn

I will try it out when I get home but I thought everyone interested might want to have a look at this.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...