LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-2016, 03:34 AM   #1
end
Member
 
Registered: Aug 2016
Posts: 266

Rep: Reputation: Disabled
way iptables DNAT canot subnet


way -j DNAT --to-destination 11.11.11.11/24 canot be. or way this not working
 
Old 11-03-2016, 09:41 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
What are you trying to do?
 
1 members found this post helpful.
Old 11-03-2016, 11:29 AM   #3
end
Member
 
Registered: Aug 2016
Posts: 266

Original Poster
Rep: Reputation: Disabled
re

you can see in my thread in ununsvered questions about openvpn. So im yust experimenting with commands and notice that DNAT canot subnet and whant to se can this be done. its not that important.

i setup nat vpn and notice that on server when i do wireshark local ip of server first gooing to 11.11.11 local to vpn protocol and after that 11.11.11 connecting to TCP UDP protocol and sites i visit. its better explain in other thread.

iptables -t nat -A POSTROUTING -s 11.11.11.11 -j SNAT --to 10.8.0.0.1/24-vpn subnet iwas trayng this command.

p.s. in my connections everything is working yust im curios about this local ip connecting to sites i visit
 
Old 11-03-2016, 11:36 AM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
DNAT Multiple Addresses
SNAT Multiple Addresses

Last edited by lazydog; 11-03-2016 at 11:37 AM.
 
1 members found this post helpful.
Old 11-03-2016, 03:52 PM   #5
end
Member
 
Registered: Aug 2016
Posts: 266

Original Poster
Rep: Reputation: Disabled
re

im idiot. i doing this way in router, no even cross my mind this way here.

thanks
 
Old 11-04-2016, 10:47 AM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
You are welcome. It normally is the simple things we over look.
 
Old 11-04-2016, 07:24 PM   #7
end
Member
 
Registered: Aug 2016
Posts: 266

Original Poster
Rep: Reputation: Disabled
re

p.s

this links are great i newer cross on them on net.
 
Old 11-05-2016, 02:29 AM   #8
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
That is an old tutorial and hasn't been updated in some time with the latest configuration options but it is still good.
 
Old 11-05-2016, 12:52 PM   #9
end
Member
 
Registered: Aug 2016
Posts: 266

Original Poster
Rep: Reputation: Disabled
re

master the basics, then go complicate your life. my moto
 
  


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
[SOLVED] How to DNAT with iptables jshailes Linux - Networking 2 12-29-2011 08:58 PM
Iptables and DNAT _TeRmInEt_ Linux - Networking 9 11-24-2009 06:56 PM
Iptables DNAT ! Please help ! thomaspsimon Linux - Networking 18 08-27-2007 11:03 AM
iptables DNAT pshepperd Linux - Security 1 05-22-2004 04:56 PM
iptables DNAT bentz Linux - Networking 15 05-19-2003 02:17 PM

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

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