November 24, 2024, 05:00:06 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Error Transparent Proxy with < iptables -v -n --list !  (Read 21567 times)

Offline gadekishore

  • Linux Noob !
  • *
  • Posts: 13
Error Transparent Proxy with < iptables -v -n --list !
« Reply #15 on: October 14, 2005, 10:05:43 AM »
iam sending the out put of vi  /etc/sysconfig/iptables.. here you can watch  about natting and filtering... the iptables -v -n --list command is showing only filtering poins not natting.

go through this////
# Generated by iptables-save v1.2.9 on Fri Oct 14 14:38:56 2005
*nat
:PREROUTING ACCEPT [1:78]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
COMMIT
# Completed on Fri Oct 14 14:38:56 2005
# Generated by iptables-save v1.2.9 on Fri Oct 14 14:38:56 2005
*filter
:INPUT ACCEPT [1:78]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Fri Oct 14 14:38:56 2005

tnx kishore

Offline sothy

  • Linux Learner
  • ***
  • Posts: 84
Sorry Sir
« Reply #16 on: October 14, 2005, 10:07:09 AM »
Dear sir
sorry i use linux suse 9.1 and i can't log in /etc/syscomfigu but in this file it does't have iptables . but when i fine it i saw iptables in ;
linux:/ # whereis iptables
iptables: /usr/sbin/iptables /usr/lib/iptables /usr/share/man/man8/iptables.8.gz
 so did you know some thing about this or not ?

Offline sothy

  • Linux Learner
  • ***
  • Posts: 84
Error Transparent Proxy with < iptables -v -n --list !
« Reply #17 on: October 14, 2005, 10:12:37 AM »
hey sir you know i can't fine file iptables on etc/sysconfig

linux:/ # vi /etc/sysconfig/
SuSEfirewall2, clock , hotplug ,  lirc   , powersave   ,suseconfig ,
apache             console            ide                mail               proxy              susehelp
apache2            cron               isdn               mdadm              saslauthd          sysctl
autofs             cups               ispell             mouse              sax                syslog
autoinstall        daemons            java               network            scripts            windowmanager
backup             displaymanager     joystick           news               scsidev            xntp
boot               dump               kernel             nfs                security           ypbind
bootloader         esound             keyboard           onlineupdate       sendmail
bootsplash         fonts-config       language           personal-firewall  sound
bzflagserver       hardware           ldap               postfix            ssh
linux:/ # vi /etc/sysconfig/

Offline gadekishore

  • Linux Noob !
  • *
  • Posts: 13
Error Transparent Proxy with < iptables -v -n --list !
« Reply #18 on: October 14, 2005, 10:15:58 AM »
do one thing type this command and send the out put then i can justify............

find / -name iptables

Offline sothy

  • Linux Learner
  • ***
  • Posts: 84
Error Transparent Proxy with < iptables -v -n --list !
« Reply #19 on: October 14, 2005, 10:19:21 AM »
it the result that you want sir ;

linux:/ # find / -name iptables
/usr/lib/iptables
/usr/sbin/iptables
/usr/share/doc/packages/iptables
find: . changed during execution of find
linux:/ #

Offline gadekishore

  • Linux Noob !
  • *
  • Posts: 13
Error Transparent Proxy with < iptables -v -n --list !
« Reply #20 on: October 14, 2005, 10:25:37 AM »
i think the below one is for saved iptables directory
/etc/sysconfig/SuSEfirewall2

you can go through this site for clear information...
http://www-uxsup.csx.cam.ac.uk/pub/doc/suse/suse9.2/suselinux-adminguide_en/ch27.html#sec:fire

Offline sothy

  • Linux Learner
  • ***
  • Posts: 84
Thank You
« Reply #21 on: October 14, 2005, 10:29:53 AM »
Dear Sir

Thank you for your time so now i have the way for resoul my problem but im not sure that i can't do or not but i will try and if i have some wonder i will contact to you again .........Thank you for your help ......................


Best Regard

Sothy

Offline gadekishore

  • Linux Noob !
  • *
  • Posts: 13
Error Transparent Proxy with < iptables -v -n --list !
« Reply #22 on: October 14, 2005, 10:30:11 AM »
you can see the out put in  fedora core 2

[root@station22 root]# find / -name iptables
/sbin/iptables
/lib/modules/2.6.5-1.358/build/include/config/ip6/nf/iptables
/lib/modules/2.6.5-1.358/build/include/config/ip/nf/iptables
/lib/iptables
/etc/sysconfig/iptables
/etc/rc.d/init.d/iptables
[root@station22 root]#


here you can observe /etc/sysconfig/iptables.....is the configuration file for iptables
ii think in your linux box iptables..rpm not configured well...i think so...try to download from site... why iam saying is if you are trying with find ...you will get the out put of the configuration file...

be patience you will get the solution shortly..... if not now may be tommorow
tnx

Offline sothy

  • Linux Learner
  • ***
  • Posts: 84
Still the same
« Reply #23 on: October 17, 2005, 02:18:04 AM »
Dear Sir

i think every thing still the same i can't use transparent proxy by use the scripts iptables..................... . ............ did you have agood idea for tellme >>? and did have some one can help me or not ? my work now stuck with transparent proxy .

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Error Transparent Proxy with < iptables -v -n --list
« Reply #24 on: October 17, 2005, 02:53:27 PM »
Quote from: "sothy"
Dear every body

i have problem with transparent proxy that befor time every with transparent proxy it working fine but when i reinstall machin it have problem with command :

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
 
but when i go to see on iptable -v -n --list it dosen't have command that i typed befor ..........so could you tell me how shout i do with thos command .

Happy when you reply back

Best Regard

sothy.sorn



Hmm.. I have not gone through every post in this topic but I would like to know that what is your OS ?

Offline sothy

  • Linux Learner
  • ***
  • Posts: 84
Thank You For Your Reply Back !
« Reply #25 on: October 18, 2005, 01:44:54 AM »
Dear Ricky

Now day i use Suse 9.1 and i have meet a difficult for along time so could you help me about this..... and Linux it the new os in cambodia so it hard to fine some one that know about Linux .


......Thank you for your reply back and Hope you will soul my problem..........

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Error Transparent Proxy with < iptables -v -n --list !
« Reply #26 on: October 21, 2005, 06:55:00 PM »
I too have not done it on SuSe but I think someone .. may be Gauravbajaj has tried it on SuSe.. Actually in suse you can't directly apply iptables, its overwritten by suse's firewall system. Try it configuring from there.

Offline sothy

  • Linux Learner
  • ***
  • Posts: 84
What Going On With SuSe
« Reply #27 on: October 21, 2005, 07:02:39 PM »
Dear Ricky

Thank you for your reply back but about my problem i have some informaiton from Mr.Gauravbajaj but information that he tall me it doesn't work so i want to ask him and you again . How ever i have some point about this problem some wrong with firewall config so i want to ask you how to disable firewall .........................

Best Regard

sothy

Offline masoud77

  • New Member
  • Posts: 1
Error Transparent Proxy with < iptables -v -n --list !
« Reply #28 on: October 22, 2005, 10:33:23 AM »
if you want to disable the firewall in suse the simple way is via Yast.
Yast/Security And user/firewall after click on firewall there is two options .
the first use for setting firewall and the second option is disabllig firewall.
and then reboot your system.
when at first i wanted to configure squid like ricky tutorial the firewall dose not permit to nat for redirect and when i disabled firewall in this manner squid start to work well.

Offline sothy

  • Linux Learner
  • ***
  • Posts: 84
Thank You For Your Reply Back
« Reply #29 on: October 24, 2005, 12:47:15 AM »
any where i will config to disbal firewall and the result it show i will tell you again .....


Thank You

Sothy