LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-12-2009, 07:41 AM   #1
mjhvg
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
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



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
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
Iptables problem,help me please. ryanux Linux - Security 1 05-21-2004 09:59 PM
iptables problem? poulaum Linux - Networking 12 02-27-2003 03:57 PM
iptables problem chandra Linux - Newbie 4 03-26-2002 09:35 PM

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

All times are GMT -5. The time now is 01:13 AM.

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