LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-21-2005, 09:41 PM   #1
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
iptables - why am I still being redirected?


Code:
Chain PREROUTING (policy ACCEPT 3931 packets, 1199K bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     udp  --  wlan0  any     homsar               anywhere            MAC 00:30:65:21:A9:EE
    0     0 ACCEPT     tcp  --  wlan0  any     homsar               anywhere            MAC 00:30:65:21:A9:EE
   40  2400 DNAT       tcp  --  wlan0  any     anywhere             anywhere            tcp dpt:http to:10.0.0.1
    3   180 DNAT       tcp  --  wlan0  any     anywhere             anywhere            tcp dpt:!http to:10.0.0.1:8080

Chain POSTROUTING (policy ACCEPT 2 packets, 140 bytes)
 pkts bytes target     prot opt in     out     source               destination
   92  5578 MASQUERADE  all  --  any    eth0    anywhere             anywhere

Chain OUTPUT (policy ACCEPT 67 packets, 4034 bytes)
 pkts bytes target     prot opt in     out     source               destination
Chain INPUT (policy ACCEPT 68860 packets, 32M bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 740 packets, 228K bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 DROP       tcp  --  wlan0  wlan0   anywhere             anywhere            multiport dports telnet,24,smtp,auth,netbios-ns,netbios-dgm,netbios-ssn,svrloc,afpovertcp
    0     0 DROP       udp  --  wlan0  wlan0   anywhere             anywhere            multiport dports telnet,24,smtp,auth,netbios-ns,netbios-dgm,netbios-ssn,svrloc,afpovertcp

Chain OUTPUT (policy ACCEPT 170K packets, 192M bytes)
 pkts bytes target     prot opt in     out     source               destination
On homsar I hit a web site, say <shameless plug>www.carumeen.com</shameless plug> and am redirected to my authenticator page on 10.0.0.1. My PHP page retains the originally desired URL and displays a link to it once authenticated, which are the two rules in bold inserted above the redirect.

Why, then, when I click that link am I bounced back to the authenticator? I can access any other URL without being redirected.

I assume then it has something to do with the routing cache? How can I correct this without an `ip route flush`?

PS What's the second DNAT rule for? It's a portmsg server that displays a message if, say, you try to telnet somewhere before authenticating; kind'a clever I think

Last edited by michaelsanford; 05-21-2005 at 09:44 PM.
 
Old 05-23-2005, 03:52 PM   #2
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
<'scuse the bump>Anyone ?</'scuse the bump>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GPG and redirected input Vookimedlo Linux - Software 1 04-30-2005 04:32 PM
Is a Domain being redirected? rigel_kent Programming 0 02-14-2005 06:43 AM
Samba config request gets redirected condosolon Linux - Software 0 03-04-2004 12:34 AM
my domain is getting redirected to a different ip. QS_Shorty Linux - Newbie 3 02-10-2004 08:22 PM
Some windows redirected to console (not in VNC) jswilson Red Hat 6 10-31-2003 03:22 PM


All times are GMT -5. The time now is 07:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration