AFO IPTables permanent fix instructions for Dreampi 1.5

Online games, how to get online, and anything involving Dreamcast online can be discussed here.
User avatar
Xiden
Developer
Posts: 2363
Dreamcast Games you play Online: All the DC games!!

AFO IPTables permanent fix instructions for Dreampi 1.5

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

User avatar
Wombat
Vagabond
Posts: 769
Location: Netherlands

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

Post by Wombat »

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

User avatar
Retrosanctum99
dark night
Posts: 50
Dreamcast Games you play Online: Quake 3 Arena, Outtrigger, Unreal T, P.S.O
Speed devils , Starlancer, alien front


Anything really
Location: Scotland

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

Post 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

User avatar
Xiden
Developer
Posts: 2363
Dreamcast Games you play Online: All the DC games!!

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

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

User avatar
Wombat
Vagabond
Posts: 769
Location: Netherlands

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post 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

User avatar
itsthinkingstill
Vagabond
Posts: 790
Dreamcast Games you play Online: pso, 4x4, max pool, planet ring, afo, chu chu.... all of them

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post by itsthinkingstill »

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

User avatar
Xiden
Developer
Posts: 2363
Dreamcast Games you play Online: All the DC games!!

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post 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

User avatar
Strik3r91
letterbomb
Posts: 158
Dreamcast Games you play Online: PSO, Q3A, Toy Racer, Starlancer, AFO
Location: Russia
Contact:

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post by Strik3r91 »

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 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.

User avatar
Wombat
Vagabond
Posts: 769
Location: Netherlands

Re: AFO IPTables permanent fix instructions for Dreampi 1.5

Post 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

  • Similar Topics
    Replies
    Views
    Last post
  • [v0.2a wip] Radxa RockpiS build instructions for online play
    by OatBob » » in Online
    4 Replies
    5756 Views
    Last post by OatBob
  • Dreampi UK
    by Markdanni123 » » in Online
    4 Replies
    6560 Views
    Last post by Markdanni123
  • Dreampi - RPI Zero vs RPI 3?
    by johnnyapathy » » in Online
    1 Replies
    3733 Views
    Last post by rickytee
  • Dreampi
    by Markdanni123 » » in Online
    2 Replies
    4953 Views
    Last post by Markdanni123
  • Help with dreampi
    by Tanino » » in Support
    27 Replies
    19931 Views
    Last post by Zoarb