Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-12-2009, 02:15 AM   #1
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

The client is for the tun device, and the wireless card is using a static IP of
The proxy is for the tun device and with fixed external IP of
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 -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?



forwarding, iptables, masquerading, proxy, ubuntu

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
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

All times are GMT -5. The time now is 04:02 PM.

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