AFO IPTables permanent fix instructions for Dreampi 1.5

Online games, how to get online, and anything involving Dreamcast online can be discussed here.

Moderator: pcwzrd13

User avatar
Xiden
Developer
Posts: 2219

AFO IPTables permanent fix instructions for Dreampi 1.5

Post#1 » Tue Nov 22, 2016 8:16 pm

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!
Last edited by Xiden on Wed Nov 23, 2016 11:02 am, edited 2 times in total.

User avatar
Wombat
Vagabond
Posts: 753

Re: AFO IPTables permanent fix instructions for Dreampi 1.5 :)

Post#2 » Wed Nov 23, 2016 2:34 am

Awesome! Going to give this a try later this week :)

User avatar
Retrosanctum99
dark night
Posts: 50

Re: AFO IPTables permanent fix instructions for Dreampi 1.5 :)

Post#3 » Wed Nov 23, 2016 9:56 am

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

User avatar
Xiden
Developer
Posts: 2219

Re: AFO IPTables permanent fix instructions for Dreampi 1.5 :)

Post#4 » Wed Nov 23, 2016 10:57 am

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 :)

User avatar
Wombat
Vagabond
Posts: 753

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post#5 » Wed Nov 23, 2016 12:14 pm

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

User avatar
itsthinkingstill
Vagabond
Posts: 787

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post#6 » Wed Nov 23, 2016 11:54 pm

pretty sure i screwed up, anyone know how to format changes?

User avatar
Xiden
Developer
Posts: 2219

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post#7 » Thu Nov 24, 2016 7:41 am

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

User avatar
Strik3r91
letterbomb
Posts: 158
Contact:

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post#8 » Thu Nov 24, 2016 9:57 am

works for PC-DC too.
From love, with Russia :)

User avatar
Shuouma
Developer
Posts: 406

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post#9 » Thu Nov 24, 2016 10:00 am

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.

User avatar
Wombat
Vagabond
Posts: 753

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post#10 » Thu Nov 24, 2016 3:08 pm

@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

  • Similar Topics
    Replies
    Views
    Last post

Return to “Online”

Who is online

Users browsing this forum: No registered users