Page 1 of 2
AFO IPTables permanent fix instructions for Dreampi 1.5
Posted: Tue Nov 22, 2016 8:16 pm
by Xiden
For those who were wanting a permanent fix to the IPTables issue for dreampi 1.5 and want it now I have the solution for you
first you'll need to login
username: pi
password: raspberry
then type
sudo nano -w /etc/rc.local
you'll be brought into an editor
go down right above "exit 0" and right below "fi"
type in the following line
sudo iptables -t nat -A PREROUTING -p tcp -d 63.251.242.131 -j DNAT --to-destination 146.185.135.179
Then hold down "Ctrl + X" you'll be prompted to save just type "Y" press enter,
then it will ask you the file name, rc.local should already be entered for you so just hit enter again
reboot your pi and your done!
Re: AFO IPTables permanent fix instructions for Dreampi 1.5 :)
Posted: Wed Nov 23, 2016 2:34 am
by Wombat
Awesome! Going to give this a try later this week

Re: AFO IPTables permanent fix instructions for Dreampi 1.5 :)
Posted: Wed Nov 23, 2016 9:56 am
by Retrosanctum99
Excellent information Xiden
Thank you, no more retyping
Not sure if your address differs from mine but
"sudo iptables -t nat -A PREROUTING -p tcp -d 63.251.242.131 -j DNAT --to-destination 146.185.135.179"
Worked for me
Re: AFO IPTables permanent fix instructions for Dreampi 1.5 :)
Posted: Wed Nov 23, 2016 10:57 am
by Xiden
Retrosanctum99 wrote:Excellent information Xiden
Thank you, no more retyping
Not sure if your address differs from mine but
"sudo iptables -t nat -A PREROUTING -p tcp -d 63.251.242.131 -j DNAT --to-destination 146.185.135.179"
Worked for me
Your ips are correct. Sorry I had a typo when making this post. I corrected mine

Re: AFO IPTables permanent fix instructions for Dreampi 1.5
Posted: Wed Nov 23, 2016 12:14 pm
by Wombat
And while you're SSH'ing into your Dreampi, for those with the default username/password, I highly recommend to change it to a different one:
https://www.raspberrypi.org/documentati ... e/users.md
Re: AFO IPTables permanent fix instructions for Dreampi 1.5
Posted: Wed Nov 23, 2016 11:54 pm
by itsthinkingstill
pretty sure i screwed up, anyone know how to format changes?
Re: AFO IPTables permanent fix instructions for Dreampi 1.5
Posted: Thu Nov 24, 2016 7:41 am
by Xiden
itsthinkingstill wrote:pretty sure i screwed up, anyone know how to format changes?
You mean you mistyped on the file? You can just reopen the file again in the editor and make changes and save again if you want
Re: AFO IPTables permanent fix instructions for Dreampi 1.5
Posted: Thu Nov 24, 2016 9:57 am
by Strik3r91
works for PC-DC too.
Re: AFO IPTables permanent fix instructions for Dreampi 1.5
Posted: Thu Nov 24, 2016 10:00 am
by Shuouma
If you want to remove changes in the NAT-chain:
sudo iptables -t nat -F
sudo iptables -t nat -X
Another way of having iptables persistent:
Add the rule:
sudo iptables -t nat -A PREROUTING -p tcp -d 63.251.242.131 -j DNAT --to-destination 146.185.135.179
Installl iptables-persistent:
sudo apt-get install iptables-persistent
It will ask if you want to save the iptables ipv4 rules, press yes
Done
If you are not happy run:
sudo iptables -t nat -F
sudo iptables -t nat -X
Then:
sudo dpkg-reconfigure iptables-persistent
You will save a blank NAT-chain (default).
This was the rule I asked to be added for dreampi 1.5, so this is
nothing new under the sun,
but sadly there was a bug in dreampi 1.5 so this rule wasn't added correctly
during startup, dreampi 1.6 has a fix for this.
Re: AFO IPTables permanent fix instructions for Dreampi 1.5
Posted: Thu Nov 24, 2016 3:08 pm
by Wombat
@Xiden, your instructions did the trick. I was just checking to see if I could connect, and to my surprise there were actually 2 fellow DC-Talk members online, so played a few rounds of AFO. AWESOME