LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-29-2013, 03:27 AM   #1
rj_gtx
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
google problem has something to do with iptables


Hi people,,my client PCs are having a problem connecting to google ever since i added some rules in my iptables. Here are my rules
Quote:
# Generated by iptables-save v1.4.7 on Fri Jan 11 14:42:42 2013
*nat
:PREROUTING ACCEPT [51:3684]
:POSTROUTING ACCEPT [6:477]
:OUTPUT ACCEPT [13:1058]
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
# Completed on Fri Jan 11 14:42:42 2013
# Generated by iptables-save v1.4.7 on Fri Jan 11 14:42:42 2013
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [2:136]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth1 -p icmp -m icmp --icmp-type 8 -j DROP
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o eth1 -j ACCEPT
-I FORWARD -m string --algo bm --string "facebook.com" -j DROP
-I FORWARD -m string --algo bm --string "utorrent.com" -j DROP
-I FORWARD -m string --algo bm --string "bittorrent.com" -j DROP
-I FORWARD -m string --algo bm --string "frostwire.com" -j DROP
-I FORWARD -m string --algo bm --string "bearshare.com" -j DROP
-I FORWARD -m string --algo bm --string "4shared.com" -j DROP
-I FORWARD -m string --algo bm --string "filestube.com" -j DROP
-A OUTPUT -p tcp -m tcp --dport 25 -j ACCEPT
COMMIT
# Completed on Fri Jan 11 14:42:42 2013
the string rules in forward chain is what i added lately.
The rules did blocked those specified sites but then, the clents were unable to google search after i added those rules
Im noob to linux so decided to ask for help again guys...
 
Old 06-29-2013, 08:52 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
https://www.linuxquestions.org/quest...tables-790799/
 
  


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
LXer: Google Reader: Google Giveth and Google taketh away. Keep Calm and Carry On LXer Syndicated Linux News 0 04-09-2013 06:41 PM
Unable to block google chat in gmail using iptables arun_1328 Linux - Security 11 02-09-2010 10:22 PM
[SOLVED] Rather huge IPtables chain, iptables: Memory allocation problem. Gangrif Linux - Networking 10 09-11-2009 03:30 PM
Strange IPTables or Perhaps its not IPtables problem? helptonewbie Linux - Security 4 01-28-2009 07:54 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM

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

All times are GMT -5. The time now is 03:32 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