LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-03-2009, 12:07 PM   #1
Franxez
LQ Newbie
 
Registered: Feb 2009
Posts: 19

Rep: Reputation: 0
NAT rule not working. any help


hello.
i have a vpn running on my lan and it was working a few days a go, i had a linux centos 5.2 running as vpn client and routing the 2 lans the vpn and mine..

i have the following rule

iptables -t nat -A POSTROUTING -d 192.168.100.0/24 -j SNAT --to-source 192.168.50.98

where 192.168.100.0/24 is the vpn network
and
192.168.50.98 my centos server.

i just had to add route to all the windows machines and they could ping the vpn, but now not even the server cna ping the vpn when usign that rule.

can some one help me on this please.

Thanks

Franxez.



sorry for the inconv i mage to fix the problem.

Last edited by Franxez; 11-03-2009 at 12:49 PM.
 
Old 11-04-2009, 02:41 PM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Why on earth

Why on Earth do you do that? You could just push a route back to the rest of the network to your VPN client.

Anyway, I don't know, that IP your VPN server is, but it should probably be excluded from this rule. If that doesn't help, please paste your whole firewall setup with detailed IP descriptions.
 
  


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
iptables nat port forwarding rule set crowhurst01 Linux - Networking 2 02-13-2012 03:39 AM
Now to create NAT rule for Port 25 & 110 Chandrashekharp Linux - Networking 1 07-02-2009 09:14 AM
Iptables rule for SMTP on NAT mblames Linux - Networking 4 02-15-2007 11:08 PM
a little help needed for adding nat rule cutejai Linux - Networking 1 12-16-2005 06:14 PM
NAT Rule for FTP failing raja_lucky22 Linux - Security 2 07-04-2005 10:31 PM

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

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