LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-11-2008, 02:18 PM   #1
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Rep: Reputation: 31
Iptables blocking , well...everything


stovetenaren happyhd # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere 192.168.1.150 tcp dpt:http
ACCEPT tcp -- anywhere 192.168.1.150 tcp dpt:https
DROP all -- anywhere 192.168.1.150

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 192.168.1.150 anywhere tcp spt:http
ACCEPT tcp -- 192.168.1.150 anywhere tcp spt:https
DROP all -- 192.168.1.150 anywhere
stovetenaren happyhd #

I thought the above would make for simple browsing on the net but I can't ping anything, can't acess a simgle page on the net. Ideas ?
 
Old 12-11-2008, 02:49 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Well, you've blocked name resolution and who knows how many other useful ICMP packets. 'http/s' isn't the only thing on the wire.

Just to confirm:

host www.google.com

(or 'nslookup' if you don't have 'host')
 
Old 12-12-2008, 03:22 AM   #3
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Original Poster
Rep: Reputation: 31
Well I now realice that UDP is quite useful :P

Thx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
blocking an IP using iptables picox Linux - Security 7 12-10-2010 02:00 PM
Blocking almost everything with iptables GeneralDark Linux - Security 18 12-04-2007 04:36 PM
Blocking an IP with iptables asif2k Linux - Security 4 04-18-2006 11:22 PM
iptables is blocking sites... The_wave Linux - Networking 9 09-09-2005 04:44 PM
Blocking Iptables Ranges SuperSadSmile Linux - Security 6 02-09-2004 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration