Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Aug 13, 2014 10:15 pm 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
Trying to set up separate web and db servers. I have it working on another host and am trying to migrate both to Linode. Where I'm having confusion is how Linode recommends using the public ipv6 address between the two linodes and my iptables rule.

On the other host I'm using the private ip4's and have set them both up in the /etc/hosts on each server, example: 192.11.23.111 webapp, 192.11.23.222 dbserver. Then in iptables on the db server, I only allow connections to mysql from webapp.

Code:
#  Allow DB connections
-A INPUT -i eth1 -s webapp -p tcp --destination-port 3306 -j ACCEPT


So I'm not sure how to edit this rule to allow the ipv6 connection from the webapp.

Or I could skip all this and just use the private ip4's linode provides right?


Top
   
PostPosted: Thu Aug 14, 2014 8:52 am 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
Also, instead of eth1 in that rule, it should be eth0 since this is all thats used at Linode?


Top
   
PostPosted: Thu Aug 14, 2014 3:52 pm 
Offline
Linode Staff

Joined: Mon Jun 16, 2014 2:27 pm
Posts: 50
Location: Galloway, NJ
You'd need to use ip6tables to set up rules for IPv6, if I recall correctly.

You are correct, Linodes (by default) use eth0.

Thanks,

Dave.


Top
   
PostPosted: Thu Aug 14, 2014 9:42 pm 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
I got it all working with ipv4 rules, didn't get into the ipv6 yet.

But if there there was an ipv6 version of this page, I would be all set:
https://www.linode.com/docs/security/securing-your-server#creating-a-firewall

This would be a huge help.


Top
   
PostPosted: Fri Aug 15, 2014 7:31 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Replace every instance of "iptables" with "ip6tables" and you have the IPv6 version.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sat Aug 16, 2014 1:10 am 
Offline
Linode Staff

Joined: Mon Jun 16, 2014 2:27 pm
Posts: 50
Location: Galloway, NJ
jgjh151 wrote:
I got it all working with ipv4 rules, didn't get into the ipv6 yet.

But if there there was an ipv6 version of this page, I would be all set:
https://www.linode.com/docs/security/securing-your-server#creating-a-firewall

This would be a huge help.


As our Linode Docs are now open to the community, and you may edit them via GitHub by forking the repository and making a pull request, I would highly encourage you to consider making any Linode Doc article (new or updated) you feel would be a good fit for the project :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group