LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2009, 02:15 AM   #1
mjhvg
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
Proxy and Client talk, proxy isn't returning/retrieving requests (iptables problem?)


Hi All,

I am trying to use NSTX in the style of thomer.com/howtos/nstx.html

The client is 172.16.16.2 for the tun device, and the wireless card is using a static IP of 192.168.1.111
The proxy is 172.16.16.1 for the tun device and with fixed external IP of 123.123.123.123.
I have the following entered in the proxy for ip forwarding and ip tables

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 172.16.16.0/24 -j MASQUERADE
iptables -A INPUT -p udp --dport 53 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT

From the tcpdump tool I can see that the proxy is receiving requests for web pages and the like. It is not, however, returning the encapsulated pages as it should. It looks to me like a problem with ip tables.

Can someone shed some light?

Thanks
 
  


Reply

Tags
forwarding, iptables, masquerading, proxy, ubuntu



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
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
user requests to proxy Dogar Linux - General 1 02-21-2007 07:24 AM
Squid problem: Howto always forward requests to x.y to other proxy intens Linux - Networking 3 01-16-2007 02:14 PM
forward all HTTP requests to the proxy cccc Linux - Networking 2 10-01-2006 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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